This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Two places in GCC doing (float)func(x) -> funcf(x) ??


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]