mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
* config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS. * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in access to float.h macros. * misc/efgcvt.c: New file. * misc/Makefile (routines): Add efgcvt.
This commit is contained in:
@ -47,13 +47,16 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
|
||||
/* Constants we need from float.h; select the set for the FLOAT precision. */
|
||||
#define MANT_DIG FLT##_MANT_DIG
|
||||
#define MAX_EXP FLT##_MAX_EXP
|
||||
#define MIN_EXP FLT##_MIN_EXP
|
||||
#define MAX_10_EXP FLT##_MAX_10_EXP
|
||||
#define MIN_10_EXP FLT##_MIN_10_EXP
|
||||
#define MAX_10_EXP_LOG FLT##_MAX_10_EXP_LOG
|
||||
#define MANT_DIG PASTE(FLT,_MANT_DIG)
|
||||
#define MAX_EXP PASTE(FLT,_MAX_EXP)
|
||||
#define MIN_EXP PASTE(FLT,_MIN_EXP)
|
||||
#define MAX_10_EXP PASTE(FLT,_MAX_10_EXP)
|
||||
#define MIN_10_EXP PASTE(FLT,_MIN_10_EXP)
|
||||
#define MAX_10_EXP_LOG PASTE(FLT,_MAX_10_EXP_LOG)
|
||||
|
||||
/* Extra macros required to get FLT expanded before the pasting. */
|
||||
#define PASTE(a,b) PASTE1(a,b)
|
||||
#define PASTE1(a,b) a##b
|
||||
|
||||
/* Function to construct a floating point number from an MP integer
|
||||
containing the fraction bits, a base 2 exponent, and a sign flag. */
|
||||
|
Reference in New Issue
Block a user