Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- faad2-2.7/libfaad/common.h.orig
- +++ faad2-2.7/libfaad/common.h
- @@ -168,6 +168,11 @@
- #if defined(_WIN32) && !defined(__MINGW32__)
- + #if _MSC_VER >= 1800
- + /* Use lrintf() function of Standard VC++ library on VC++2013 and later */
- + #define HAVE_LRINTF
- + #endif
- +
- #include <stdlib.h>
- typedef unsigned __int64 uint64_t;
- @@ -314,17 +319,17 @@
- #if defined(_WIN32) && !defined(__MINGW32__)
- + #ifndef HAVE_LRINTF
- #define HAS_LRINTF
- - static INLINE int lrintf(float f)
- - {
- - int i;
- - __asm
- - {
- - fld f
- - fistp i
- - }
- - return i;
- - }
- + // Use SSE2 Intrinsic (Require SSE2 Capable Processor)
- + #include <emmintrin.h>
- + static INLINE int32_t lrintf(double f)
- + // double is not a mistake, this trick is for fast conversion.
- + {
- + return _mm_cvtsd_si32(_mm_set_sd( f ));
- + }
- + #endif /* HAVE_LRINTF */
- +
- #elif (defined(__i386__) && defined(__GNUC__) && \
- !defined(__CYGWIN__) && !defined(__MINGW32__))
- #ifndef HAVE_LRINTF
- --- faad2-2.7/libfaad/libfaad2.def.orig
- +++ faad2-2.7/libfaad/libfaad2.def
- @@ -12,3 +12,5 @@
- NeAACDecClose @7
- NeAACDecGetErrorMessage @8
- NeAACDecAudioSpecificConfig @9
- +NeAACDecPostSeekReset @10
- +NeAACDecDecode2 @11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement