Add deprecated stubs for _bsf / _bsr

This commit is contained in:
Justine Tunney 2024-03-05 09:45:51 -08:00
parent 8bfd56b59e
commit bb92347158
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 10 additions and 0 deletions

View file

@ -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 */

View file

@ -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 */