diff --git a/libc/intrin/bsf.h b/libc/intrin/bsf.h index 14f62d2e6..7128b2d28 100644 --- a/libc/intrin/bsf.h +++ b/libc/intrin/bsf.h @@ -13,6 +13,11 @@ libcesque int bsfll(long long) pureconst; #define bsfll(x) __builtin_ctzll(x) #endif +/* deprecated */ +#define _bsf(x) bsf(x) +#define _bsfl(x) bsfl(x) +#define _bsfll(x) bsfll(x) + COSMOPOLITAN_C_END_ #endif /* COSMOPOLITAN_LIBC_NEXGEN32E_BSF_H_ */ #endif /* _COSMO_SOURCE */ diff --git a/libc/intrin/bsr.h b/libc/intrin/bsr.h index 862385c93..107befc2a 100644 --- a/libc/intrin/bsr.h +++ b/libc/intrin/bsr.h @@ -13,6 +13,11 @@ libcesque int bsrll(long long) pureconst; #define bsrll(x) (__builtin_clzll(x) ^ (sizeof(long long) * 8 - 1)) #endif +/* deprecated */ +#define _bsr(x) bsr(x) +#define _bsrl(x) bsrl(x) +#define _bsrll(x) bsrll(x) + COSMOPOLITAN_C_END_ #endif /* COSMOPOLITAN_LIBC_NEXGEN32E_BSR_H_ */ #endif /* _COSMO_SOURCE */