e_rem_pio2.c (223302) | e_rem_pio2.c (239192) |
---|---|
1 2/* @(#)e_rem_pio2.c 1.4 95/01/18 */ 3/* 4 * ==================================================== 5 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6 * 7 * Developed at SunSoft, a Sun Microsystems, Inc. business. 8 * Permission to use, copy, modify, and distribute this 9 * software is freely granted, provided that this notice 10 * is preserved. 11 * ==================================================== 12 * 13 * Optimized by Bruce D. Evans. 14 */ 15 16#include <sys/cdefs.h> | 1 2/* @(#)e_rem_pio2.c 1.4 95/01/18 */ 3/* 4 * ==================================================== 5 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6 * 7 * Developed at SunSoft, a Sun Microsystems, Inc. business. 8 * Permission to use, copy, modify, and distribute this 9 * software is freely granted, provided that this notice 10 * is preserved. 11 * ==================================================== 12 * 13 * Optimized by Bruce D. Evans. 14 */ 15 16#include <sys/cdefs.h> |
17__FBSDID("$FreeBSD: head/lib/msun/src/e_rem_pio2.c 223302 2011-06-19 17:07:58Z kargl $"); | 17__FBSDID("$FreeBSD: head/lib/msun/src/e_rem_pio2.c 239192 2012-08-11 11:13:48Z dim $"); |
18 19/* __ieee754_rem_pio2(x,y) 20 * 21 * return the remainder of x rem pi/2 in y[0]+y[1] 22 * use __kernel_rem_pio2() 23 */ 24 25#include <float.h> --- 17 unchanged lines hidden (view full) --- 43invpio2 = 6.36619772367581382433e-01, /* 0x3FE45F30, 0x6DC9C883 */ 44pio2_1 = 1.57079632673412561417e+00, /* 0x3FF921FB, 0x54400000 */ 45pio2_1t = 6.07710050650619224932e-11, /* 0x3DD0B461, 0x1A626331 */ 46pio2_2 = 6.07710050630396597660e-11, /* 0x3DD0B461, 0x1A600000 */ 47pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */ 48pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */ 49pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */ 50 | 18 19/* __ieee754_rem_pio2(x,y) 20 * 21 * return the remainder of x rem pi/2 in y[0]+y[1] 22 * use __kernel_rem_pio2() 23 */ 24 25#include <float.h> --- 17 unchanged lines hidden (view full) --- 43invpio2 = 6.36619772367581382433e-01, /* 0x3FE45F30, 0x6DC9C883 */ 44pio2_1 = 1.57079632673412561417e+00, /* 0x3FF921FB, 0x54400000 */ 45pio2_1t = 6.07710050650619224932e-11, /* 0x3DD0B461, 0x1A626331 */ 46pio2_2 = 6.07710050630396597660e-11, /* 0x3DD0B461, 0x1A600000 */ 47pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */ 48pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */ 49pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */ 50 |
51#ifndef INLINE_REM_PIO2 52extern | 51#ifdef INLINE_REM_PIO2 52static __inline |
53#endif | 53#endif |
54__inline int | 54int |
55__ieee754_rem_pio2(double x, double *y) 56{ 57 double z,w,t,r,fn; 58 double tx[3],ty[2]; 59 int32_t e0,i,j,nx,n,ix,hx; 60 u_int32_t low; 61 62 GET_HIGH_WORD(hx,x); /* high word of x */ --- 124 unchanged lines hidden --- | 55__ieee754_rem_pio2(double x, double *y) 56{ 57 double z,w,t,r,fn; 58 double tx[3],ty[2]; 59 int32_t e0,i,j,nx,n,ix,hx; 60 u_int32_t low; 61 62 GET_HIGH_WORD(hx,x); /* high word of x */ --- 124 unchanged lines hidden --- |