Merge pull request #60 from UAVCAN/bendyer-half-nostdlib

Use public domain half<->float routines which dependence on math functions in C stdlib
This commit is contained in:
Pavel Kirienko
2015-08-24 14:17:18 +03:00
3 changed files with 91 additions and 71 deletions
@@ -143,6 +143,14 @@
# define UAVCAN_USE_EXTERNAL_SNPRINTF 0
#endif
/**
* Allows the user's application to provide a custom implementation of IEEE754Converter::nativeIeeeToHalf and
* IEEE754Converter::halfToNativeIeee.
*/
#ifndef UAVCAN_USE_EXTERNAL_FLOAT16_CONVERSION
# define UAVCAN_USE_EXTERNAL_FLOAT16_CONVERSION 0
#endif
/**
* Run time checks.
* Resolves to the standard assert() by default.