forked from ibphoenix/tomsfastmath
add version information
This commit is contained in:
parent
6db706e857
commit
846d7f36eb
@ -16,6 +16,15 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
/* 0xMaMiPaXX
|
||||||
|
* Major
|
||||||
|
* Minor
|
||||||
|
* Patch
|
||||||
|
* XX - undefined
|
||||||
|
*/
|
||||||
|
#define TFM_VERSION 0x000C0000
|
||||||
|
#define TFM_VERSION_S "0.12"
|
||||||
|
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
#define MIN(x,y) ((x)<(y)?(x):(y))
|
#define MIN(x,y) ((x)<(y)?(x):(y))
|
||||||
#endif
|
#endif
|
||||||
|
@ -15,7 +15,7 @@ const char *fp_ident(void)
|
|||||||
|
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
snprintf(buf, sizeof(buf)-1,
|
snprintf(buf, sizeof(buf)-1,
|
||||||
"TomsFastMath\n"
|
"TomsFastMath " TFM_VERSION_S "\n"
|
||||||
#if defined(TFM_IDENT_BUILD_DATE)
|
#if defined(TFM_IDENT_BUILD_DATE)
|
||||||
"Built on " __DATE__ " at " __TIME__ "\n"
|
"Built on " __DATE__ " at " __TIME__ "\n"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user