diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-05-06 03:14:10 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-05-06 03:14:10 +0000 |
commit | e82a312b55f88fc3d035e0c24409c71e043e9633 (patch) | |
tree | 2a99b03c08d036a34af9b1b5c844c11e3d67a3af /libjava/java/io/FileOutputStream.java | |
parent | d7b4a590279f012756741c12f2027d714ea776c4 (diff) | |
download | gcc-e82a312b55f88fc3d035e0c24409c71e043e9633.zip gcc-e82a312b55f88fc3d035e0c24409c71e043e9633.tar.gz gcc-e82a312b55f88fc3d035e0c24409c71e043e9633.tar.bz2 |
real.c (real_powi): New function to calculate the value of a real raised to an integer power, i.e.
* real.c (real_powi): New function to calculate the value of
a real raised to an integer power, i.e. pow(x,n) for int n.
(real_sqrt): Convert to using the faster do_add, do_multiply
and do_divide API for consistency with the rest of real.c.
* real.h (real_powi): Prototype here.
* builtins.c (fold_builtin): Avoid local variable mode when
evaluating sqrt at compile time. Attempt to evaluate pow at
compile-time, by checking for an integral exponent.
* gcc.dg/builtins-14.c: New test case.
From-SVN: r66515
Diffstat (limited to 'libjava/java/io/FileOutputStream.java')
0 files changed, 0 insertions, 0 deletions