mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Try to fix
This commit is contained in:
4
Makefile
4
Makefile
@ -47,9 +47,9 @@ COMMON=
|
||||
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)
|
||||
|
@ -111,7 +111,7 @@ void asm_cpuid(uint32_t* abcd, uint32_t eax)
|
||||
}
|
||||
#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 @@ inline int simd_detect_x86(unsigned int idFeature)
|
||||
return 1;
|
||||
}
|
||||
|
||||
inline int is_fma_avx() {
|
||||
int is_fma_avx() {
|
||||
static int result = -1;
|
||||
if (result == -1) {
|
||||
result = simd_detect_x86(AVXFlag);
|
||||
|
Reference in New Issue
Block a user