Define floorf if system doesn't have it (follow up for 22c48761)

floorf is checked in config.m4
This commit is contained in:
Lior Kaplan 2017-11-29 13:45:21 +02:00 committed by Christoph M. Becker
parent 26656684ea
commit 32e3d7b99e

View file

@ -66,6 +66,16 @@ TODO:
# include <emmintrin.h>
#endif
#ifndef HAVE_FLOORF
# define HAVE_FLOORF 0
#endif
#if HAVE_FLOORF == 0
# ifndef floorf
/* float floorf(float x);*/
# define floorf(x) ((float)(floor(x)))
# endif
#endif
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif