Skip to content

Commit

Permalink
Making these functions inline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lemire committed Dec 16, 2023
1 parent dcf8408 commit c6e7c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/roaring/portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ inline int roaring_leading_zeroes(unsigned long long input_num) {
#ifndef CROARING_INTRINSICS
#define CROARING_INTRINSICS 1
#define roaring_unreachable __builtin_unreachable()
static inline int roaring_trailing_zeroes(unsigned long long input_num) { return __builtin_ctzll(input_num); }
static inline int roaring_leading_zeroes(unsigned long long input_num) { return __builtin_clzll(input_num); }
inline int roaring_trailing_zeroes(unsigned long long input_num) { return __builtin_ctzll(input_num); }
inline int roaring_leading_zeroes(unsigned long long input_num) { return __builtin_clzll(input_num); }
#endif

#if CROARING_REGULAR_VISUAL_STUDIO
Expand Down

0 comments on commit c6e7c37

Please sign in to comment.