diff options
author | Richard Guenther <rguenth@gcc.gnu.org> | 2005-02-09 20:58:13 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2005-02-09 20:58:13 +0000 |
commit | 17684d462957afd5011d71db40e9a96c63225d2c (patch) | |
tree | 347cc9d98b8029f4811e05bd8d3f3df4c5a4ced7 /gcc/doc | |
parent | 8ca3515fbe765aef349c8d6f848539bf11d3d6df (diff) | |
download | gcc-17684d462957afd5011d71db40e9a96c63225d2c.zip gcc-17684d462957afd5011d71db40e9a96c63225d2c.tar.gz gcc-17684d462957afd5011d71db40e9a96c63225d2c.tar.bz2 |
re PR middle-end/19402 (__builtin_powi? still missing)
2005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
PR middle-end/19402
* builtins.def: New __builtin_powi[lf].
* builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
(expand_builtin_powi): New function.
(expand_builtin): Dispatch to expand_builtin_powi.
* libgcc2.h: Add prototypes for __builtin_powi[lf].
* libgcc2.c: Add __builtin_powi[lf] implementation.
* mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
* optabs.h: Add powi_optab.
* optabs.c (init_optabs): Initialize powi_optab.
* doc/extend.texi: Document __builtin_powi[lf].
* gcc.dg/pr19402-1.c: New testcase.
* gcc.dg/pr19402-2.c: likewise.
From-SVN: r94774
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/extend.texi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index e730511..7e4d66a 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -4507,6 +4507,9 @@ identifier, or a sequence of member accesses and array references. @findex __builtin_islessequal @findex __builtin_islessgreater @findex __builtin_isunordered +@findex __builtin_powi +@findex __builtin_powif +@findex __builtin_powil @findex _Exit @findex _exit @findex abort @@ -5368,6 +5371,21 @@ Similar to @code{__builtin_parity}, except the argument type is @code{unsigned long long}. @end deftypefn +@deftypefn {Built-in Function} double __builtin_powi (double, int) +Returns the first argument raised to the power of the second. Unlike the +@code{pow} function no guarantees about precision and rounding are made. +@end deftypefn + +@deftypefn {Built-in Function} float __builtin_powif (float, int) +Similar to @code{__builtin_powi}, except the argument and return types +are @code{float}. +@end deftypefn + +@deftypefn {Built-in Function} {long double} __builtin_powil (long double, int) +Similar to @code{__builtin_powi}, except the argument and return types +are @code{long double}. +@end deftypefn + @node Target Builtins @section Built-in Functions Specific to Particular Target Machines |