AlexeyAB
2018-04-12 1c39aeca008ced62dae8245f8d6f9963f4c97b47
Try to fix
2 files modified
6 ■■■■ changed files
Makefile 2 ●●● patch | view | raw | blame | history
src/gemm.c 4 ●●●● patch | view | raw | blame | history
Makefile
@@ -49,7 +49,7 @@
ifeq ($(DEBUG), 1) 
OPTS=-O0 -g
else
OPTS=-ffp-contract=fast -mavx
CFLAGS+= -ffp-contract=fast -mavx
endif
CFLAGS+=$(OPTS)
src/gemm.c
@@ -111,7 +111,7 @@
}
#endif
inline int simd_detect_x86(unsigned int idFeature)
int simd_detect_x86(unsigned int idFeature)
{
    uint32_t regs[4];   // EAX, EBX, ECX, EDX;
#ifdef _WIN32
@@ -127,7 +127,7 @@
    return 1;
}
inline int is_fma_avx() {
int is_fma_avx() {
    static int result = -1;
    if (result == -1) {
        result = simd_detect_x86(AVXFlag);