mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Add deprecated stubs for _bsf / _bsr
This commit is contained in:
parent
8bfd56b59e
commit
bb92347158
2 changed files with 10 additions and 0 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue