DATAMATRIX/CODEONE: Use LCM in look ahead tests to avoid floats (#228)

This commit is contained in:
gitlost
2021-06-29 22:02:24 +01:00
parent 368633bda4
commit 37fac73cb1
4 changed files with 266 additions and 233 deletions

View File

@ -56,9 +56,6 @@
#define ustrcat(target, source) strcat((char *) (target), (const char *) (source))
#define ustrncat(target, source, count) strncat((char *) (target), (const char *) (source), (count))
/* Removes excess precision from floats - see https://stackoverflow.com/q/503436/664741 */
#define stripf(arg) (*((volatile float *) &(arg)))
#ifdef _MSC_VER
# if _MSC_VER < 1800 /* ceilf, floorf, roundf (C99) not before MSVC 2013 (C++ 12.0) */
# define ceilf (float) ceil