1/* @(#)e_fmod.c 5.1 93/09/24 */ 2/* 3 * ==================================================== 4 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 * 6 * Developed at SunPro, a Sun Microsystems, Inc. business. 7 * Permission to use, copy, modify, and distribute this 8 * software is freely granted, provided that this notice 9 * is preserved. 10 * ==================================================== 11 */ 12 13#ifndef lint
| 1/* @(#)e_fmod.c 5.1 93/09/24 */ 2/* 3 * ==================================================== 4 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 * 6 * Developed at SunPro, a Sun Microsystems, Inc. business. 7 * Permission to use, copy, modify, and distribute this 8 * software is freely granted, provided that this notice 9 * is preserved. 10 * ==================================================== 11 */ 12 13#ifndef lint
|
14static char rcsid[] = "$FreeBSD: head/lib/msun/src/e_fmod.c 21673 1997-01-14 07:20:47Z jkh $";
| 14static char rcsid[] = "$FreeBSD: head/lib/msun/src/e_fmod.c 22808 1997-02-16 18:26:31Z bde $";
|
15#endif 16 17/* 18 * __ieee754_fmod(x,y) 19 * Return x mod y in exact arithmetic 20 * Method: shift and subtract 21 */ 22 23#include "math.h" 24#include "math_private.h" 25 26#ifdef __STDC__ 27static const double one = 1.0, Zero[] = {0.0, -0.0,}; 28#else 29static double one = 1.0, Zero[] = {0.0, -0.0,}; 30#endif 31 32#ifdef __STDC__
| 15#endif 16 17/* 18 * __ieee754_fmod(x,y) 19 * Return x mod y in exact arithmetic 20 * Method: shift and subtract 21 */ 22 23#include "math.h" 24#include "math_private.h" 25 26#ifdef __STDC__ 27static const double one = 1.0, Zero[] = {0.0, -0.0,}; 28#else 29static double one = 1.0, Zero[] = {0.0, -0.0,}; 30#endif 31 32#ifdef __STDC__
|
33 double __ieee754_fmod(double x, double y)
| 33 double __generic___ieee754_fmod(double x, double y)
|
34#else
| 34#else
|
35 double __ieee754_fmod(x,y)
| 35 double __generic___ieee754_fmod(x,y)
|
36 double x,y ; 37#endif 38{ 39 int32_t n,hx,hy,hz,ix,iy,sx,i; 40 u_int32_t lx,ly,lz; 41 42 EXTRACT_WORDS(hx,lx,x); 43 EXTRACT_WORDS(hy,ly,y);
--- 97 unchanged lines hidden --- | 36 double x,y ; 37#endif 38{ 39 int32_t n,hx,hy,hz,ix,iy,sx,i; 40 u_int32_t lx,ly,lz; 41 42 EXTRACT_WORDS(hx,lx,x); 43 EXTRACT_WORDS(hy,ly,y);
--- 97 unchanged lines hidden --- |