aboutsummaryrefslogtreecommitdiffstats
path: root/libj2.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libj2.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libj2.h b/libj2.h
index 0c3d882..aa1747f 100644
--- a/libj2.h
+++ b/libj2.h
@@ -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