mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-04 09:08:30 +00:00
Move clang path to __builtin_clz
This commit is contained in:
@@ -19,9 +19,7 @@ int getExp(int val)
|
|||||||
asm("clz %0, %1\n":"=r"(i):"r"(val&0x3FF));
|
asm("clz %0, %1\n":"=r"(i):"r"(val&0x3FF));
|
||||||
return 31-i;
|
return 31-i;
|
||||||
#else
|
#else
|
||||||
unsigned int i;
|
return 31 - __builtin_clz(val & 0x3FF);
|
||||||
for (i = 9; (i > 0) && !((val >> i) & 1); --i);
|
|
||||||
return i;
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user