|
ADS
Algorithms and Data Structures
|
The primitives of the processor that the compilers spell each in their own way, in one form for all. More...
Files | |
| file | ADS/Portable.h |
| The primitives of the processor that the compilers spell each in their own way, in one form for all: the product of two words of 64 bits by the products of their halves of 32 bits (wideProductHalves(), the portable form of the product of Wide.h), and the swap of the bytes of a word, which is the std::byteswap() of C++23 where the library has it, else the boost::core::byteswap() of Boost.Core where Boost is found, else three exchanges by masks, of the bytes, of the pairs of bytes and of the halves. | |
Macros | |
| #define | ADS_NO_UNIQUE_ADDRESS [[no_unique_address]] |
| an empty member that takes no storage, by the attribute that does so (the standard one is accepted but has no effect under the ABI of MSVC) | |
| #define | ADS_ALWAYS_INLINE inline |
| a function inlined even where the compiler would not | |
| #define | ADS_NOINLINE |
| a function never inlined | |
| #define | ADS_COLD_PATH ADS_NOINLINE |
| a function of a rare path: never inlined, laid out away from the hot code | |
| #define | ADS_POISON(p, n) |
| the \( n \) bytes from \( p \) forbidden, and allowed again, under the sanitizer of addresses, by the macros of its interface, which the interface itself turns into no code when the sanitizer is off; no code where the toolchain has no such interface | |
The primitives of the processor that the compilers spell each in their own way, in one form for all.
The definitions, the invariants and the costs of the area are in Theory of the foundations.
| #define ADS_ALWAYS_INLINE inline |
a function inlined even where the compiler would not
| #define ADS_COLD_PATH ADS_NOINLINE |
a function of a rare path: never inlined, laid out away from the hot code
| #define ADS_NO_UNIQUE_ADDRESS [[no_unique_address]] |
an empty member that takes no storage, by the attribute that does so (the standard one is accepted but has no effect under the ABI of MSVC)
| #define ADS_NOINLINE |
a function never inlined
| #define ADS_POISON | ( | p, | |
| n ) |
the \( n \) bytes from \( p \) forbidden, and allowed again, under the sanitizer of addresses, by the macros of its interface, which the interface itself turns into no code when the sanitizer is off; no code where the toolchain has no such interface