Two places in GCC doing (float)func(x) -> funcf(x) ??
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Sat Mar 13 23:05:00 GMT 2004
I see two places that ostensibly claim to transform for example:
(float)trunc((float)foo) -> truncf(foo)
one place is in convert_to_real() and one place is in
fold_trunc_transparent_mathfn().
I had a couple of questions:
1. Why two places? Are they equivalent or did I misread it?
2. convert_to_real claims to be disabled in comments, but it's not?
3. convert_to_real has some typos for the supposedly long double
BUILT_IN_ROUND, BUILT_IN_TRUNC and BUILT_IN_NEARBYINT.
4. Can't we handle BUILT_IN_RINT the same way we do the others?
Thanks,
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu
More information about the Gcc
mailing list