Replace float<->half implementation with public domain code

This commit is contained in:
Ben Dyer
2015-08-24 20:07:03 +10:00
parent a7fe27a365
commit 37bd23e4fa
2 changed files with 59 additions and 127 deletions
@@ -136,6 +136,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.