Revert "Use __builtin_clz instead of default implementation of fixnormz on GCC"

This reverts commit e036dbc8eb.

Upstream took __builtin_clz in use (in the new header
libFDK/include/x86/clz_x86.h, together with an alternative
implementation for MSVC), so this change can be dropped to
minimize the differences.
This commit is contained in:
Martin Storsjo 2012-11-01 11:15:28 +02:00
parent 48cfc02cbf
commit 9285c096fe
1 changed files with 0 additions and 12 deletions

View File

@ -118,11 +118,6 @@ inline INT fixnormz_S (SHORT a)
{ {
return fixnormz_D((INT)(a)); return fixnormz_D((INT)(a));
} }
#elif defined(__GNUC__)
inline INT fixnormz_S (SHORT a)
{
return a ? __builtin_clz(a) : 16;
}
#else #else
inline INT fixnormz_S (SHORT a) inline INT fixnormz_S (SHORT a)
{ {
@ -139,12 +134,6 @@ inline INT fixnormz_S (SHORT a)
#endif #endif
#if !defined(FUNCTION_fixnormz_D) #if !defined(FUNCTION_fixnormz_D)
#if defined(__GNUC__)
inline INT fixnormz_D (LONG a)
{
return a ? __builtin_clz(a) : 32;
}
#else
inline INT fixnormz_D (LONG a) inline INT fixnormz_D (LONG a)
{ {
INT leadingBits = 0; INT leadingBits = 0;
@ -157,7 +146,6 @@ inline INT fixnormz_D (LONG a)
return (leadingBits); return (leadingBits);
} }
#endif #endif
#endif
/***************************************************************************** /*****************************************************************************