diff options
author | Martin Storsjo <martin@martin.st> | 2012-09-14 11:10:29 +0300 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2012-09-14 11:10:29 +0300 |
commit | e79b172ba6f62855b7d5d5b86cd3c118be8750ea (patch) | |
tree | cfea9809bce501dc224031d9c0b88dfd5e234e74 /libFDK | |
parent | bf0d9ddc43b25f0fb56ed69ff72d1c37c29e2db6 (diff) | |
download | fdk-aac-e79b172ba6f62855b7d5d5b86cd3c118be8750ea.tar.gz fdk-aac-e79b172ba6f62855b7d5d5b86cd3c118be8750ea.tar.bz2 fdk-aac-e79b172ba6f62855b7d5d5b86cd3c118be8750ea.zip |
Revert "Do schur_div with a direct 64 bit division instead of a loop on x86"
This reverts commit 923f3e95f3e332d26f03cf6782f0ab61596ceef2.
The optimized version differed from the original in a few cases
(in some cases where the return value turned out to be negative
while the original implementation returned a positive value),
so revert it for now until it has been analyzed completely.
Diffstat (limited to 'libFDK')
-rw-r--r-- | libFDK/src/fixpoint_math.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libFDK/src/fixpoint_math.cpp b/libFDK/src/fixpoint_math.cpp index 7d5fbb5..000820c 100644 --- a/libFDK/src/fixpoint_math.cpp +++ b/libFDK/src/fixpoint_math.cpp @@ -443,15 +443,6 @@ FIXP_DBL sqrtFixp(FIXP_DBL op) *****************************************************************************/ -#if defined(__x86__) -FIXP_DBL schur_div(FIXP_DBL num, FIXP_DBL denum, INT count) -{ - INT64 tmp=(INT64)num<<31; - LONG div=(tmp/denum)>>(DFRACT_BITS-count); - return (FIXP_DBL)(div) << (DFRACT_BITS-count); -} - -#else FIXP_DBL schur_div(FIXP_DBL num, FIXP_DBL denum, INT count) { @@ -478,7 +469,6 @@ FIXP_DBL schur_div(FIXP_DBL num, FIXP_DBL denum, INT count) return (FIXP_DBL)(div << (DFRACT_BITS - count)); } -#endif #endif /* !defined(FUNCTION_schur_div) */ |