]> sourceware.org Git - newlib-cygwin.git/commit
Minimal support for ISO/IEC TS 18661-3.
authorKito Cheng <kito.cheng@sifive.com>
Mon, 12 Jul 2021 09:17:21 +0000 (17:17 +0800)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 12 Jul 2021 19:07:43 +0000 (21:07 +0200)
commit91f99d323b39dc0c06c40038791db9861d4b76b9
tree18bdd072eb491f115d013ae9242ebff2f4e0c5c1
parent9a231073a5978189902183ee7d1ea7390106a318
Minimal support for ISO/IEC TS 18661-3.

 - GCC will set __FLT_EVAL_METHOD__ to 16 if __fp16 supported, e.g.
   cortex-a55/aarch64.
   - $ aarch64-unknown-elf-gcc -v 2>&1 |grep version
     gcc version 9.2.0 (GCC)
   - $ aarch64-unknown-elf-gcc  -E -dM -mcpu=cortex-a55 - < /dev/null  |grep FLT_EVAL_METHOD
     #define __FLT_EVAL_METHOD__ 16
     #define __FLT_EVAL_METHOD_TS_18661_3__ 16
     #define __FLT_EVAL_METHOD_C99__ 16
 - The behavior of __FLT_EVAL_METHOD__ == 16 is same as
   __FLT_EVAL_METHOD__ == 0 except for float16_t, but newlib didn't
   support float16_t.

ISO/IEC TS 18661-3:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2405.pdf

V2 Changes:
- List Howland, Craig D as co-author since he provide the draft of comment
  in math.h.

Co-authored-by: "Howland, Craig D" <howland@LGSInnovations.com>
newlib/libc/include/math.h
This page took 0.030973 seconds and 5 git commands to generate.