mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
float.h: Define FLT_ROUNDS if not defined by toolchain previously
This value is necessary to build third-party applications on NuttX. If not defined previously by the toolchain, define it at NuttX's `lib/float.h`.
This commit is contained in:
committed by
Xiang Xiao
parent
e1e1d534af
commit
1dd8178bdc
@@ -42,6 +42,12 @@
|
||||
|
||||
#define FLT_RADIX 2
|
||||
|
||||
/* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown. */
|
||||
|
||||
#ifndef FLT_ROUNDS /* May be defined in a toolchain header */
|
||||
# define FLT_ROUNDS 1
|
||||
#endif
|
||||
|
||||
/* Number of base-FLT_RADIX digits in the floating-point significand, p. */
|
||||
|
||||
#ifndef FLT_MANT_DIG /* May be defined in a toolchain header */
|
||||
|
||||
Reference in New Issue
Block a user