mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
longlong.h: update from GCC for LoongArch clz/ctz support
Update longlong.h to GCC r13-3269. Keep our local change (prefer https for gnu.org URL).
This commit is contained in:
@@ -593,6 +593,18 @@ extern UDItype __umulsidi3 (USItype, USItype);
|
|||||||
#define UMUL_TIME 14
|
#define UMUL_TIME 14
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __loongarch__
|
||||||
|
# if W_TYPE_SIZE == 32
|
||||||
|
# define count_leading_zeros(count, x) ((count) = __builtin_clz (x))
|
||||||
|
# define count_trailing_zeros(count, x) ((count) = __builtin_ctz (x))
|
||||||
|
# define COUNT_LEADING_ZEROS_0 32
|
||||||
|
# elif W_TYPE_SIZE == 64
|
||||||
|
# define count_leading_zeros(count, x) ((count) = __builtin_clzll (x))
|
||||||
|
# define count_trailing_zeros(count, x) ((count) = __builtin_ctzll (x))
|
||||||
|
# define COUNT_LEADING_ZEROS_0 64
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (__M32R__) && W_TYPE_SIZE == 32
|
#if defined (__M32R__) && W_TYPE_SIZE == 32
|
||||||
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
|
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
|
||||||
/* The cmp clears the condition bit. */ \
|
/* The cmp clears the condition bit. */ \
|
||||||
|
Reference in New Issue
Block a user