ROOT-Sim core
3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
|
Easier access to compiler extensions. More...
#include <assert.h>
Go to the source code of this file.
Macros | |
#define | intrinsics_ctz(x) |
Counts the trailing zeros in a base 2 number. More... | |
#define | intrinsics_clz(x) |
Counts the leading zeros in a base 2 number. More... | |
#define | intrinsics_popcount(x) |
Counts the set bits in a base 2 number. More... | |
Easier access to compiler extensions.
This header defines some macros which allow to easily rely on some compiler optimizations which can be used to produce more efficient code.
#define intrinsics_clz | ( | x | ) |
Counts the leading zeros in a base 2 number.
x | the number on which to compute this operation |
The argument x may be of one of the supported types of the underlying compiler built-ins. Selection of the matching built-in is done statically at compile time. If no matching built-in is found a compilation error is thrown.
#define intrinsics_ctz | ( | x | ) |
Counts the trailing zeros in a base 2 number.
x | the number on which to compute this operation |
The argument x may be of one of the supported types of the underlying compiler built-ins. Selection of the matching built-in is done statically at compile time. If no matching built-in is found a compilation error is thrown.
#define intrinsics_popcount | ( | x | ) |
Counts the set bits in a base 2 number.
x | the number on which to compute this operation |
The argument x may be of one of the supported types of the underlying compiler built-ins. Selection of the matching built-in is done statically at compile time. If no matching built-in is found a compilation error is thrown.