toolchain/ghs: Fix green hills toolchain build Vela link error
[elxr] (error #412) unresolved symbols: __builtin_signbit from libc.a(lib_dtoa_engine.o) Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
This commit is contained in:
parent
9fdd299d32
commit
2ae4ea3f99
@ -69,7 +69,7 @@ int __dtoa_engine(double x, FAR struct dtoa_s *dtoa, int max_digits,
|
||||
uint8_t flags = 0;
|
||||
int i;
|
||||
|
||||
if (__builtin_signbit(x))
|
||||
if (x < 0)
|
||||
{
|
||||
flags |= DTOA_MINUS;
|
||||
x = -x;
|
||||
|
Loading…
Reference in New Issue
Block a user