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

[Bug fortran/57071] Optimize (-1)**k to 1 - 2 * mod(K, 2)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57071

--- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-04-27 23:19:13 UTC ---
While special-casing power, it might also make sense
to translate 2**n to ishft(1,n).


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