diff options
| author | Mattias Andrée <m@maandree.se> | 2025-12-05 20:43:23 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2025-12-05 20:48:59 +0100 |
| commit | f05fdeb727a2fc8052900a159c225d328d603acc (patch) | |
| tree | 9c56ef8fea9964decd3c24f5b03f1341266f779b /libj2.h | |
| parent | First commit (diff) | |
| download | libj2-f05fdeb727a2fc8052900a159c225d328d603acc.tar.gz libj2-f05fdeb727a2fc8052900a159c225d328d603acc.tar.bz2 libj2-f05fdeb727a2fc8052900a159c225d328d603acc.tar.xz | |
Second commit
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libj2.h')
| -rw-r--r-- | libj2.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -9,10 +9,20 @@ #if 1 # if defined(__GNUC__) # define LIBJ2_USE_GCC_INTRINSIC_FUNCTIONS_ +# if !defined(__clang__) +# define LIBJ2_USE_GCC_PARITYG_ +# endif # endif #endif +#if defined(__GNUC__) +# define LIBJ2_PURE_ __attribute__((__pure__)) +#else +# define LIBJ2_PURE_ +#endif + + /** * The number of bits in an `uintmax_t` */ @@ -48,6 +58,7 @@ struct libj2_j2u { #include "libj2/unsigned-comparsion.h" #include "libj2/bitwise-logic.h" #include "libj2/bit-shifting.h" +#include "libj2/bit-scanning.h" #include "libj2/sign-shifting.h" #include "libj2/addition.h" #include "libj2/subtraction.h" @@ -58,5 +69,6 @@ struct libj2_j2u { #if defined(LIBJ2_USE_GCC_INTRINSIC_FUNCTIONS_) # undef LIBJ2_USE_GCC_INTRINSIC_FUNCTIONS_ #endif +#undef LIBJ2_PURE_ #endif |
