Adding ETL_NO_HUGE_VAL_SUPPORT to support 8-Bit (AVR) systems where HUGE_VAL, HUGEL_VALF and HUGE_VALL are not defined in math.h (#288)

This commit is contained in:
Heinz-Peter Liechtenecker 2020-10-18 19:01:47 +02:00 committed by GitHub
parent 9c8156083b
commit b101454309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,20 @@ SOFTWARE.
#if ETL_NOT_USING_STL
#define ETL_LOG10_OF_2(x) (((x) * 301) / 1000)
#if defined(ETL_NO_HUGE_VAL_SUPPORT)
#ifndef HUGE_VAL
#define HUGE_VAL (1.0e999999999)
#endif
#ifndef HUGE_VALF
#define HUGE_VALF (1.0e999999999F)
#endif
#ifndef HUGE_VALL
#define HUGE_VALL (1.0e999999999L)
#endif
#endif
#if defined(ETL_NO_CPP_NAN_SUPPORT)
#if defined(NAN)
#define ETL_NAN (double)NAN