summary refs log tree commit diff
path: root/stdlib/strtof.c
blob: 0a0046daf9446a25b19733eb82278b4a6b7c2d00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* The actual implementation for all floating point sizes is in strtod.c.
   These macros tell it to produce the `float' version, `strtof'.  */

#define	FLOAT		float
#define	FLT		FLT
#define	STRTOF		strtof
#define	MPN2FLOAT	__mpn_construct_float
#define	FLOAT_HUGE_VAL	HUGE_VALF
#define SET_MANTISSA(flt, mant) \
  do { union ieee754_float u;						      \
       u.f = (flt);							      \
       u.ieee.mantissa = (mant) & 0x7fffff;				      \
       (flt) = u.f;							      \
  } while (0)

#include "strtod.c"