Projects
Essentials
faac
faac-1.29.7.8-disable-sse2.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File faac-1.29.7.8-disable-sse2.patch of Package faac (Revision 9)
Currently displaying revision
9
,
Show latest
diff -Nur faac-1.29.7.8/libfaac/Makefile.am faac-1.29.7.8-new/libfaac/Makefile.am --- faac-1.29.7.8/libfaac/Makefile.am 2017-10-05 14:55:48.000000000 +0800 +++ faac-1.29.7.8-new/libfaac/Makefile.am 2017-10-09 22:35:34.243608500 +0800 @@ -1,7 +1,7 @@ common_SOURCES = aacquant.c bitstream.c fft.c frame.c midside.c blockswitch.c util.c channels.c filtbank.c huffman.c tns.c quantize.c common_INCLUDES = aacquant.h channels.h filtbank.h hufftab.h blockswitch.h coder.h frame.h midside.h tns.h bitstream.h fft.h huffman.h util.h quantize.h version.h common_LIBADD = -lm -common_CFLAGS = -fvisibility=hidden -msse2 +common_CFLAGS = -fvisibility=hidden if USE_DRM lib_LTLIBRARIES = libfaac_drm.la diff -Nur faac-1.29.7.8/libfaac/Makefile.in faac-1.29.7.8-new/libfaac/Makefile.in --- faac-1.29.7.8/libfaac/Makefile.in 2017-10-05 20:31:51.000000000 +0800 +++ faac-1.29.7.8-new/libfaac/Makefile.in 2017-10-09 22:35:21.713357700 +0800 @@ -366,7 +366,7 @@ common_SOURCES = aacquant.c bitstream.c fft.c frame.c midside.c blockswitch.c util.c channels.c filtbank.c huffman.c tns.c quantize.c common_INCLUDES = aacquant.h channels.h filtbank.h hufftab.h blockswitch.h coder.h frame.h midside.h tns.h bitstream.h fft.h huffman.h util.h quantize.h version.h common_LIBADD = -lm -common_CFLAGS = -fvisibility=hidden -msse2 +common_CFLAGS = -fvisibility=hidden @USE_DRM_FALSE@lib_LTLIBRARIES = libfaac.la @USE_DRM_TRUE@lib_LTLIBRARIES = libfaac_drm.la @USE_DRM_TRUE@libfaac_drm_la_SOURCES = ${common_SOURCES} ${common_INCLUDES} kiss_fft/kiss_fftr.c kiss_fft/kiss_fft.c kiss_fft/kiss_fft.h diff -Nur faac-1.29.7.8/libfaac/quantize.c faac-1.29.7.8-new/libfaac/quantize.c --- faac-1.29.7.8/libfaac/quantize.c 2017-10-05 14:55:48.000000000 +0800 +++ faac-1.29.7.8-new/libfaac/quantize.c 2017-10-09 22:26:53.347399200 +0800 @@ -126,34 +126,7 @@ #ifdef __GNUC__ typedef float v4sf __attribute__ ((vector_size (16))); typedef int v4si __attribute__ ((vector_size (16))); - if (__builtin_cpu_supports("sse2")) - { - static const v4sf zero = {0, 0, 0, 0}; - static const v4sf magic = {MAGIC_NUMBER, MAGIC_NUMBER, MAGIC_NUMBER, MAGIC_NUMBER}; - for (cnt = start; cnt < end; cnt += 4) - { - float fin[4]; - fin[0] = xr[cnt]; - fin[1] = xr[cnt+1]; - fin[2] = xr[cnt+2]; - fin[3] = xr[cnt+3]; - - v4sf x = __builtin_ia32_loadups(fin); - x = __builtin_ia32_maxps(x, __builtin_ia32_subps(zero, x)); - - v4sf fix = {sfacfix, sfacfix, sfacfix, sfacfix}; - x = __builtin_ia32_mulps(x, fix); - x = __builtin_ia32_mulps(x , __builtin_ia32_sqrtps(x)); - x = __builtin_ia32_sqrtps(x); - - x = __builtin_ia32_addps(x, magic); - v4si vi = __builtin_ia32_cvttps2dq(x); - memcpy(xi+cnt,&vi,16); - } - - continue; - } #endif for (cnt = start; cnt < end; cnt++)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.