From 7faa1bbb5d0206cc83f20c1145f612f7754fdcf3 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Wed, 18 Jul 2007 17:30:38 +0000 Subject: re PR target/30652 (SSE expansion is missing for isinf() and other fpclassify functions) PR target/30652 PR middle-end/20558 * builtins.c (expand_builtin_interclass_mathfn): Provide a generic fallback for isinf. * c-cppbuiltin.c (builtin_define_float_constants): Move FP max calculation code ... * real.c (get_max_float): ... to here. * real.h (get_max_float): New. testsuite: * gcc.dg/pr28796-1.c: Add more cases. * gcc.dg/pr28796-2.c: Likewise. From-SVN: r126724 --- gcc/real.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/real.h') diff --git a/gcc/real.h b/gcc/real.h index 09b1e52..68ad362 100644 --- a/gcc/real.h +++ b/gcc/real.h @@ -438,4 +438,8 @@ extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mp_rnd_t); /* Check whether the real constant value given is an integer. */ extern bool real_isinteger (const REAL_VALUE_TYPE *c, enum machine_mode mode); +/* Write into BUF the maximum representable finite floating-point + number, (1 - b**-p) * b**emax for a given FP format FMT as a hex + float string. BUF must be large enough to contain the result. */ +extern void get_max_float (const struct real_format *, char *, size_t); #endif /* ! GCC_REAL_H */ -- cgit v1.1