added missing -lm

sqrt() -> sqrtf()
pull/20/head
Wojciech Kaczmarski 2023-12-30 10:11:51 +01:00
rodzic 4d005a7a73
commit 663fab8e9d
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -3,7 +3,7 @@ INC = -I .
TARGET = libm17.so
CFLAGS = $(INC) -fPIC
LDFLAGS = -shared
LDFLAGS = -shared -lm
SRCS = $(wildcard *.c) $(wildcard */*.c)
OBJS = $(SRCS:.c=.o)

Wyświetl plik

@ -44,7 +44,7 @@ float eucl_norm(const float* in1, const int8_t* in2, const uint8_t n)
tmp += powf(in1[i]-(float)in2[i], 2.0f);
}
return sqrt(tmp);
return sqrtf(tmp);
}
/**