aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/c_std
diff options
context:
space:
mode:
authorRichard Guenther <rguenth@gcc.gnu.org>2005-02-13 10:25:02 +0000
committerPaolo Carlini <pcarlini@suse.de>2005-02-13 10:25:02 +0000
commit8de4801c18f3b016549187846c4f0314d35fe236 (patch)
tree534b4c8232e4ec3b8bc9632876d6fdc4732cb00b /libstdc++-v3/include/c_std
parenta8bde8da561c916841a3442ccc7b6a0c6554cd3e (diff)
2005-02-13 Richard Guenther <rguenth@gcc.gnu.org>
Paolo Carlini <pcarlini@suse.de> PR libstdc++/11706 * include/c_std/std_cmath.h (pow): Use __builtin_powi[lf] for integer overloads. * testsuite/26_numerics/cmath/powi.cc: New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@94982 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std')
-rw-r--r--libstdc++-v3/include/c_std/std_cmath.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/include/c_std/std_cmath.h b/libstdc++-v3/include/c_std/std_cmath.h
index 5aefe0ff8ac..1dd6c732ab1 100644
--- a/libstdc++-v3/include/c_std/std_cmath.h
+++ b/libstdc++-v3/include/c_std/std_cmath.h
@@ -350,15 +350,15 @@ namespace std
inline double
pow(double __x, int __i)
- { return __pow_helper(__x, __i); }
+ { return __builtin_powi(__x, __i); }
inline float
pow(float __x, int __n)
- { return __pow_helper(__x, __n); }
+ { return __builtin_powif(__x, __n); }
inline long double
pow(long double __x, int __n)
- { return __pow_helper(__x, __n); }
+ { return __builtin_powil(__x, __n); }
using ::sin;