Skip to content

Commit 796a176

Browse files
authored
Update internal.h
1 parent bd186c9 commit 796a176

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Include/internal/mimalloc/mimalloc/internal.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -895,28 +895,6 @@ static inline size_t mi_clz(size_t x) {
895895
#endif
896896
}
897897

898-
899-
static inline size_t mi_clz(uintptr_t x) {
900-
if (x==0) return MI_INTPTR_BITS;
901-
#if (MI_INTPTR_BITS <= 32)
902-
return mi_clz32((uint32_t)x);
903-
#else
904-
size_t count = mi_clz32((uint32_t)(x >> 32));
905-
if (count < 32) return count;
906-
return (32 + mi_clz32((uint32_t)x));
907-
#endif
908-
}
909-
static inline size_t mi_ctz(uintptr_t x) {
910-
if (x==0) return MI_INTPTR_BITS;
911-
#if (MI_INTPTR_BITS <= 32)
912-
return mi_ctz32((uint32_t)x);
913-
#else
914-
size_t count = mi_ctz32((uint32_t)x);
915-
if (count < 32) return count;
916-
return (32 + mi_ctz32((uint32_t)(x>>32)));
917-
#endif
918-
}
919-
920898
#endif
921899

922900
// "bit scan reverse": Return index of the highest bit (or MI_INTPTR_BITS if `x` is zero)

0 commit comments

Comments
 (0)