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]

[PATCH, middle-end]: Convert (int)logb() into ilogb().


Hello!

This patch implements a small optimization opportunity by converting
(int)logb() into ilogb() for -ffast-math.

Patch was bootstrapped and regression tested on i686-pc-linux-gnu for
all default languages. OK for mainline?

2007-01-31 Uros Bizjak <ubizjak@gmail.com>

* convert.c (convert_to_integer): Convert (int)logb() into ilogb().

testsuite/ChangeLog:

2007-01-31 Uros Bizjak <ubizjak@gmail.com>

* gcc.dg/builtins-63.c: New test.

Uros.

Attachment: ilogb.diff
Description: Binary data


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