summaryrefslogtreecommitdiffstats
path: root/noatun
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-10-13 17:30:16 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-10-13 17:30:28 +0200
commit96ff5b4a6c00960122858ec793683812bf1337a7 (patch)
tree88fcbcc97b65513794a102e9be473b10ba6ae796 /noatun
parent046c46598994f71b721dd2185a1e71945fe8adab (diff)
downloadtdemultimedia-96ff5b4a6c00960122858ec793683812bf1337a7.tar.gz
tdemultimedia-96ff5b4a6c00960122858ec793683812bf1337a7.zip
Fix tests of GCC compiler version for X86_SSE optimalizations
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 87a6b9bc0524bac4e17811f555a4a6d0eadad866)
Diffstat (limited to 'noatun')
-rw-r--r--noatun/library/noatunarts/StereoVolumeControl_impl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noatun/library/noatunarts/StereoVolumeControl_impl.cpp b/noatun/library/noatunarts/StereoVolumeControl_impl.cpp
index 425704f6..44f7187f 100644
--- a/noatun/library/noatunarts/StereoVolumeControl_impl.cpp
+++ b/noatun/library/noatunarts/StereoVolumeControl_impl.cpp
@@ -88,19 +88,19 @@ public:
__asm__ __volatile__(
"pushl $100 \n"
"fildl (%%esp) \n"
-#if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
+#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
"addl $4, %%esp \n"
#endif
"fildl %5 \n"
"fdivp \n" // percent / 100.0
-#if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
+#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
"pushl $100 \n"
#endif
"fstps (%%esp) \n"
"movss (%%esp), %%xmm1 \n"
"shufps $0x00, %%xmm1, %%xmm1 \n" // percentage in all of xmm1
"addl $4, %%esp \n"
-#if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
+#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
"subl $4, %4 \n"
"jl .l2 \n" // samples < 4
#else
@@ -124,7 +124,7 @@ public:
"incl %%ecx \n"
"incl %%ecx \n"
-#if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
+#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
"subl $4, %4 \n"
"jge .l1 \n"
".l2: \n"