e_log10.c (21673) | e_log10.c (22808) |
---|---|
1/* @(#)e_log10.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_log10.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_log10.c 21673 1997-01-14 07:20:47Z jkh $"; | 14static char rcsid[] = "$FreeBSD: head/lib/msun/src/e_log10.c 22808 1997-02-16 18:26:31Z bde $"; |
15#endif 16 17/* __ieee754_log10(x) 18 * Return the base 10 logarithm of x 19 * 20 * Method : 21 * Let log10_2hi = leading 40 bits of log10(2) and 22 * log10_2lo = log10(2) - log10_2hi, --- 39 unchanged lines hidden (view full) --- 62 63#ifdef __STDC__ 64static const double zero = 0.0; 65#else 66static double zero = 0.0; 67#endif 68 69#ifdef __STDC__ | 15#endif 16 17/* __ieee754_log10(x) 18 * Return the base 10 logarithm of x 19 * 20 * Method : 21 * Let log10_2hi = leading 40 bits of log10(2) and 22 * log10_2lo = log10(2) - log10_2hi, --- 39 unchanged lines hidden (view full) --- 62 63#ifdef __STDC__ 64static const double zero = 0.0; 65#else 66static double zero = 0.0; 67#endif 68 69#ifdef __STDC__ |
70 double __ieee754_log10(double x) | 70 double __generic___ieee754_log10(double x) |
71#else | 71#else |
72 double __ieee754_log10(x) | 72 double __generic___ieee754_log10(x) |
73 double x; 74#endif 75{ 76 double y,z; 77 int32_t i,k,hx; 78 u_int32_t lx; 79 80 EXTRACT_WORDS(hx,lx,x); --- 18 unchanged lines hidden --- | 73 double x; 74#endif 75{ 76 double y,z; 77 int32_t i,k,hx; 78 u_int32_t lx; 79 80 EXTRACT_WORDS(hx,lx,x); --- 18 unchanged lines hidden --- |