* config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian bug.
[official-gcc.git] / libf2c / libF77 / pow_di.c
blobd2298a0a1f00d8dd933c176e34e15c117fd7f831
1 #include "f2c.h"
3 double
4 pow_di (doublereal * ap, integer * bp)
6 double pow, x;
7 integer n;
8 unsigned long u;
10 pow = 1;
11 x = *ap;
12 n = *bp;
14 if (n != 0)
16 if (n < 0)
18 n = -n;
19 x = 1 / x;
21 for (u = n;;)
23 if (u & 01)
24 pow *= x;
25 if (u >>= 1)
26 x *= x;
27 else
28 break;
31 return (pow);