source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/math/__fpclassifyf.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 254 bytes
Line 
1#include <math.h>
2#include <stdint.h>
3
4int __fpclassifyf(float x)
5{
6 union {float f; uint32_t i;} u = {x};
7 int e = u.i>>23 & 0xff;
8 if (!e) return u.i<<1 ? FP_SUBNORMAL : FP_ZERO;
9 if (e==0xff) return u.i<<9 ? FP_NAN : FP_INFINITE;
10 return FP_NORMAL;
11}
Note: See TracBrowser for help on using the repository browser.