Группа :: Система/Библиотеки
Пакет: gf-complete
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: gf-complete-e2k-simd.patch
Скачать
Скачать
diff --git a/include/gf_complete.h b/include/gf_complete.h
index c4783e8..b319232 100644
--- a/include/gf_complete.h
+++ b/include/gf_complete.h
@@ -12,6 +12,13 @@
#define _GF_COMPLETE_H_
#include <stdint.h>
+#ifdef __e2k__
+#define INTEL_SSE
+#define INTEL_SSE2
+#define INTEL_SSSE3
+#define INTEL_SSE4
+#endif
+
#ifdef INTEL_SSE4
#ifdef __SSE4_2__
#include <nmmintrin.h>
diff --git a/include/gf_cpu.h b/include/gf_cpu.h
index 71c7227..d55c453 100644
--- a/include/gf_cpu.h
+++ b/include/gf_cpu.h
@@ -10,6 +10,15 @@
#pragma once
+#ifdef __e2k__
+#define gf_cpu_supports_intel_pclmul 0
+#define gf_cpu_supports_intel_sse4 1
+#define gf_cpu_supports_intel_ssse3 1
+#define gf_cpu_supports_intel_sse3 1
+#define gf_cpu_supports_intel_sse2 1
+#define gf_cpu_supports_arm_neon 0
+#define gf_cpu_identify() (void)0
+#else
extern int gf_cpu_supports_intel_pclmul;
extern int gf_cpu_supports_intel_sse4;
extern int gf_cpu_supports_intel_ssse3;
@@ -18,3 +27,4 @@ extern int gf_cpu_supports_intel_sse2;
extern int gf_cpu_supports_arm_neon;
void gf_cpu_identify(void);
+#endif
diff --git a/src/gf_cpu.c b/src/gf_cpu.c
index f65131f..7a9d082 100644
--- a/src/gf_cpu.c
+++ b/src/gf_cpu.c
@@ -11,6 +11,8 @@
#include <stdio.h>
#include <stdlib.h>
+#ifndef __e2k__
+
int gf_cpu_identified = 0;
int gf_cpu_supports_intel_pclmul = 0;
@@ -178,3 +180,4 @@ int gf_cpu_identify(void)
}
#endif
+#endif // !defined(__e2k__)