This is the mail archive of the gcc-patches@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]

Re: [PATCH, i386]: Implement ldexp{,f,l} functions as built-in x87 intrinsics


Hello Kaveh!
On Fri, 11 Feb 2005, Richard Henderson wrote:

> On Fri, Feb 11, 2005 at 04:57:23PM +0100, Uros Bizjak wrote:
> > BTW: It looks that scalbn{,f,l} functions are the same as ldexp{,f,l}.
> > Could these builtins be implemented with the same patterns as
> > corresponding ldexp{,f,l} patterns?
>
> For -ffast-math, yes.
> r~

Hi Uros,

By coincidence your ldexp patch was from exactly two years ago. :-)

I don't think you ever did the scalbn* refinement, and I think you could
do scalbln* as well. Was there a technical reason you didn't proceed or
you just forgot? I have a patch to do it, which I'm queuing until after
Sandra's jumbo patch is installed. Please let me know.
The only reason is that I have totally forgot on this...

BTW: Looking at ChangeLog-2004, I see that you are the author of (long)round -> lround transformation in convert.c, convert_to_integer() function. Following your lead, I have added other conversions, but my last patch to convert (int)logb -> ilogb was rejected by middle-end maintainers on the ground that these transformations belong to fold-const.c. I was trying to move these transformations to their better place but failed miserably... do you have any ideas on how to move this thing?

Thanks,
Uros.


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