diff options
author | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-30 20:59:21 +0000 |
---|---|---|
committer | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-30 20:59:21 +0000 |
commit | d0405f40de0e3c7796e93d22cf20737aa79b9349 (patch) | |
tree | dc8bee2ade4f014827f574e15ef69b4b8b8775b7 /gcc/libgcc2.c | |
parent | 82e95be3b8242fdda13db619bc316f1c36aa2488 (diff) | |
download | gcc-d0405f40de0e3c7796e93d22cf20737aa79b9349.tar.gz |
Fix problem with calling powi* builtins.
OKed by Richard Henderson.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97278 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index c8f6e51b043..e1b2c45af2d 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -1538,10 +1538,12 @@ __fixunssfSI (SFtype a) # define NAME __powitf2 # endif +#undef int +#undef unsigned TYPE -NAME (TYPE x, Wtype m) +NAME (TYPE x, int m) { - UWtype n = m < 0 ? -m : m; + unsigned int n = m < 0 ? -m : m; TYPE y = n % 2 ? x : 1; while (n >>= 1) { |