1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Fix inverted conditionals

llvm-svn: 22597
This commit is contained in:
Chris Lattner 2005-08-02 20:06:18 +00:00
parent 31a972dc23
commit 4b86bc6f31

View File

@ -86,7 +86,7 @@ inline unsigned CountLeadingZeros_32(unsigned Value) {
unsigned Count; // result
#if __GNUC__ >= 4
// PowerPC is defined for __builtin_clz(0)
#if defined(__ppc__) || defined(__ppc64__)
#if !defined(__ppc__) && !defined(__ppc64__)
if (!Value) return 32;
#endif
Count = __builtin_clz(Value);
@ -113,7 +113,7 @@ inline unsigned CountLeadingZeros_64(uint64_t Value) {
unsigned Count; // result
#if __GNUC__ >= 4
// PowerPC is defined for __builtin_clzll(0)
#if defined(__ppc__) || defined(__ppc64__)
#if !defined(__ppc__) && !defined(__ppc64__)
if (!Value) return 64;
#endif
Count = __builtin_clzll(Value);