Группа :: Звук
Пакет: deadbeef
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: deadbeef-e2k.patch
Скачать
Скачать
diff --git a/plugins/dumb/dumb-kode54/src/helpers/resampler.c b/plugins/dumb/dumb-kode54/src/helpers/resampler.c
index 6303065..518db14 100644
--- a/plugins/dumb/dumb-kode54/src/helpers/resampler.c
+++ b/plugins/dumb/dumb-kode54/src/helpers/resampler.c
@@ -43,6 +43,9 @@ static float sinc(float x)
}
#ifdef RESAMPLER_SSE
+#ifdef __e2k__
+#define query_cpu_feature_sse() 1
+#else
#ifdef _MSC_VER
#include <intrin.h>
#elif defined(__clang__) || defined(__GNUC__)
@@ -82,6 +85,7 @@ static int query_cpu_feature_sse() {
if ((buffer[3]&(1<<25)) == 0) return 0;
return 1;
}
+#endif
static int resampler_has_sse = 0;
#endif
diff --git a/plugins/dumb/dumb-kode54/src/it/itrender.c b/plugins/dumb/dumb-kode54/src/it/itrender.c
index e44f453..d675aa3 100644
--- a/plugins/dumb/dumb-kode54/src/it/itrender.c
+++ b/plugins/dumb/dumb-kode54/src/it/itrender.c
@@ -896,7 +896,7 @@ void _dumb_init_sse()
}
}
-#elif defined(_M_X64) || defined(__amd64__)
+#elif defined(_M_X64) || defined(__amd64__) || defined(__e2k__)
static const int _dumb_it_use_sse = 1;
diff --git a/plugins/soundtouch/soundtouch/include/STTypes.h b/plugins/soundtouch/soundtouch/include/STTypes.h
index 862505e..523af97 100644
--- a/plugins/soundtouch/soundtouch/include/STTypes.h
+++ b/plugins/soundtouch/soundtouch/include/STTypes.h
@@ -99,7 +99,7 @@ namespace soundtouch
#endif
- #if (_M_IX86 || __i386__ || __x86_64__ || _M_X64)
+ #if (_M_IX86 || __i386__ || __x86_64__ || _M_X64) || defined(__e2k__)
/// Define this to allow X86-specific assembler/intrinsic optimizations.
/// Notice that library contains also usual C++ versions of each of these
/// these routines, so if you're having difficulties getting the optimized
diff --git a/plugins/soundtouch/soundtouch/source/SoundTouch/cpu_detect_x86.cpp b/plugins/soundtouch/soundtouch/source/SoundTouch/cpu_detect_x86.cpp
index b128610..dba2d29 100644
--- a/plugins/soundtouch/soundtouch/source/SoundTouch/cpu_detect_x86.cpp
+++ b/plugins/soundtouch/soundtouch/source/SoundTouch/cpu_detect_x86.cpp
@@ -36,7 +36,7 @@
#include "STTypes.h"
-#if defined(SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS)
+#if defined(SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS) && !defined(__e2k__)
#if defined(__GNUC__) && defined(__i386__)
// gcc
@@ -75,7 +75,7 @@ uint detectCPUextensions(void)
/// Return the OR of SUPPORT_{MMX,SSE,SSE2}. 11001 or 0x19.
/// Keep the _dwDisabledISA test (2 more operations, could be eliminated).
#if ((defined(__GNUC__) && defined(__x86_64__)) \
- || defined(_M_X64)) \
+ || defined(_M_X64) || defined(__e2k__)) \
&& defined(SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS)
return 0x19 & ~_dwDisabledISA;