forked from OSchip/llvm-project
Define __builtin_ffs[ll] with a signed argument instead of unsigned.
GCC documents these as unsigned, but defines them as signed. llvm-svn: 162106
This commit is contained in:
parent
2da9d6d6cf
commit
0e72d5c3e5
|
@ -376,9 +376,9 @@ BUILTIN(__builtin_ctz , "iUi" , "nc")
|
|||
BUILTIN(__builtin_ctzl , "iULi" , "nc")
|
||||
BUILTIN(__builtin_ctzll, "iULLi", "nc")
|
||||
// TODO: int ctzimax(uintmax_t)
|
||||
BUILTIN(__builtin_ffs , "iUi" , "nc")
|
||||
BUILTIN(__builtin_ffsl , "iULi" , "nc")
|
||||
BUILTIN(__builtin_ffsll, "iULLi", "nc")
|
||||
BUILTIN(__builtin_ffs , "ii" , "nc")
|
||||
BUILTIN(__builtin_ffsl , "iLi" , "nc")
|
||||
BUILTIN(__builtin_ffsll, "iLLi", "nc")
|
||||
BUILTIN(__builtin_parity , "iUi" , "nc")
|
||||
BUILTIN(__builtin_parityl , "iULi" , "nc")
|
||||
BUILTIN(__builtin_parityll, "iULLi", "nc")
|
||||
|
|
|
@ -6,3 +6,8 @@
|
|||
extern unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char);
|
||||
extern unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short);
|
||||
extern unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int);
|
||||
|
||||
// GCC documents these as unsigned, but they are defined with a signed argument.
|
||||
extern int __builtin_ffs(int);
|
||||
extern int __builtin_ffsl(long);
|
||||
extern int __builtin_ffsll(long long);
|
||||
|
|
Loading…
Reference in New Issue