![]() |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Easier access to compiler extensions. More...
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.
Definition in file intrinsics.h.
#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.
Definition at line 47 of file intrinsics.h.
#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.
Definition at line 24 of file intrinsics.h.
#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.
Definition at line 70 of file intrinsics.h.