NetBSD/lib/libm/src
jtc c1c8f42080 Changed core routines to call __ieee754_sqrt() instead of sqrt(). I
reported this enhancement to fdlibm-comments, and got the following
reply:

Date: Thu, 11 May 1995 14:35:25 -0700
From: Kwok.Ng@Eng.Sun.COM (KC Ng)
To: fdlibm-comments@sunpro.Eng.Sun.COM, jtc@cygnus.com
Subject: Re: fdlibm 5.2: why do core functions use sqrt?

> I noticed that core (e_*.c) fdlibm functions like __ieee754_acos()
> ensure that they call sqrt() with arguments in range (x > 0), when
> they could call __ieee754_sqrt() directly.
>
> Since sqrt() does a lot more work (verifies x is in range, etc.) is
> there any reason for this?  I'd think that calling __iee754_sqrt()
> would be more appropriate.  ....

You are right. __ieee754_sqrt should be in use with e_*.c.
1995-05-12 04:57:13 +00:00
..
e_acos.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_acosf.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_acosh.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_acoshf.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_asin.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_asinf.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_atan2.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_atan2f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_atanh.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_atanhf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_cosh.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_coshf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_exp.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_expf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_fmod.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_fmodf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_gamma_r.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_gamma.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_gammaf_r.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_gammaf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_hypot.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_hypotf.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_j0.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_j0f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_j1.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_j1f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_jn.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_jnf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_lgamma_r.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_lgamma.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_lgammaf_r.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_lgammaf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_log10.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_log10f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_log.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_logf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_pow.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_powf.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
e_rem_pio2.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_rem_pio2f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_remainder.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_remainderf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_scalb.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_scalbf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_sinh.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_sinhf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_sqrt.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
e_sqrtf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_cos.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_cosf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_rem_pio2.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_rem_pio2f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_sin.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_sinf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_standard.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_tan.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
k_tanf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
math_private.h Fix overlooked FIXME: unsigned int -> u_int32_t. 1995-03-25 01:48:53 +00:00
math.h Add prototype for isinff(). 1994-09-25 17:27:56 +00:00
s_asinh.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
s_asinhf.c Changed core routines to call __ieee754_sqrt() instead of sqrt(). I 1995-05-12 04:57:13 +00:00
s_atan.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_atanf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_cbrt.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_cbrtf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_ceil.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_ceilf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_copysign.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_copysignf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_cos.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_cosf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_erf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_erff.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_expm1.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_expm1f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_fabs.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_fabsf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_finite.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_finitef.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_floor.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_floorf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_frexp.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_frexpf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_ilogb.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_ilogbf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_infinity.c Winning Strategies has placed this code in the public domain. 1995-05-11 23:03:44 +00:00
s_isinf.c Winning Strategies has placed this code in the public domain. 1995-05-11 23:03:44 +00:00
s_isinff.c Winning Strategies has placed this code in the public domain. 1995-05-11 23:03:44 +00:00
s_isnan.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_isnanf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_ldexp.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_ldexpf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_lib_version.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_log1p.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_log1pf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_logb.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_logbf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_matherr.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_modf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_modff.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_nextafter.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_nextafterf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_rint.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_rintf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_scalbn.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_scalbnf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_signgam.c Float versions of math functions. From Ian Taylor (ian@cygnus.com), with 1994-08-10 20:30:00 +00:00
s_significand.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_significandf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_sin.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_sinf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_tan.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_tanf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_tanh.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
s_tanhf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_acos.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_acosf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_acosh.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_acoshf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_asin.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_asinf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_atan2.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_atan2f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_atanh.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_atanhf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_cabs.c Add cabs() & drem() for BSD libm compatibility. 1994-03-01 17:14:34 +00:00
w_cabsf.c Float versions of math functions. From Ian Taylor (ian@cygnus.com), with 1994-08-10 20:30:00 +00:00
w_cosh.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_coshf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_drem.c Add cabs() & drem() for BSD libm compatibility. 1994-03-01 17:14:34 +00:00
w_dremf.c Float versions of math functions. From Ian Taylor (ian@cygnus.com), with 1994-08-10 20:30:00 +00:00
w_exp.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_expf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_fmod.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_fmodf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_gamma_r.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_gamma.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_gammaf_r.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_gammaf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_hypot.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_hypotf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_j0.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_j0f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_j1.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_j1f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_jn.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_jnf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_lgamma_r.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_lgamma.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_lgammaf_r.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_lgammaf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_log10.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_log10f.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_log.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_logf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_pow.c Float versions of math functions. From Ian Taylor (ian@cygnus.com), with 1994-08-10 20:30:00 +00:00
w_powf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_remainder.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_remainderf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_scalb.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_scalbf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_sinh.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_sinhf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_sqrt.c Id -> NetBSD 1995-05-10 20:44:22 +00:00
w_sqrtf.c Id -> NetBSD 1995-05-10 20:44:22 +00:00