From 1c39aeca008ced62dae8245f8d6f9963f4c97b47 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 12 Apr 2018 11:12:38 +0000
Subject: [PATCH] Try to fix

---
 Makefile   |    4 ++--
 src/gemm.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index d71e2bd..8428fb6 100644
--- a/Makefile
+++ b/Makefile
@@ -47,9 +47,9 @@
 CFLAGS=-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas
 
 ifeq ($(DEBUG), 1) 
-OPTS=-O0 -g
+OPTS= -O0 -g
 else
-OPTS=-ffp-contract=fast -mavx
+CFLAGS+= -ffp-contract=fast -mavx
 endif
 
 CFLAGS+=$(OPTS)
diff --git a/src/gemm.c b/src/gemm.c
index 4eb36fb..0efefd0 100644
--- a/src/gemm.c
+++ b/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);

--
Gitblit v1.10.0