kopia lustrzana https://github.com/M17-Project/M17_Implementations
rodzic
4d005a7a73
commit
663fab8e9d
|
@ -3,7 +3,7 @@ INC = -I .
|
||||||
TARGET = libm17.so
|
TARGET = libm17.so
|
||||||
|
|
||||||
CFLAGS = $(INC) -fPIC
|
CFLAGS = $(INC) -fPIC
|
||||||
LDFLAGS = -shared
|
LDFLAGS = -shared -lm
|
||||||
SRCS = $(wildcard *.c) $(wildcard */*.c)
|
SRCS = $(wildcard *.c) $(wildcard */*.c)
|
||||||
OBJS = $(SRCS:.c=.o)
|
OBJS = $(SRCS:.c=.o)
|
||||||
|
|
||||||
|
|
|
@ -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);
|
tmp += powf(in1[i]-(float)in2[i], 2.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sqrt(tmp);
|
return sqrtf(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Ładowanie…
Reference in New Issue