1/* s_tanhf.c -- float version of s_tanh.c. 2 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 */ 4 5/* 6 * ==================================================== 7 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 * 9 * Developed at SunPro, a Sun Microsystems, Inc. business. 10 * Permission to use, copy, modify, and distribute this 11 * software is freely granted, provided that this notice 12 * is preserved. 13 * ==================================================== 14 */ 15 16#include <sys/cdefs.h>
| 1/* s_tanhf.c -- float version of s_tanh.c. 2 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 3 */ 4 5/* 6 * ==================================================== 7 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 8 * 9 * Developed at SunPro, a Sun Microsystems, Inc. business. 10 * Permission to use, copy, modify, and distribute this 11 * software is freely granted, provided that this notice 12 * is preserved. 13 * ==================================================== 14 */ 15 16#include <sys/cdefs.h>
|
17__FBSDID("$FreeBSD: head/lib/msun/src/s_tanhf.c 176451 2008-02-22 02:30:36Z das $");
| 17__FBSDID("$FreeBSD: head/lib/msun/src/s_tanhf.c 270845 2014-08-30 17:14:47Z kargl $");
|
18 19#include "math.h" 20#include "math_private.h" 21
| 18 19#include "math.h" 20#include "math_private.h" 21
|
22static const float one=1.0, two=2.0, tiny = 1.0e-30, huge = 1.0e30;
| 22static volatile const float tiny = 1.0e-30; 23static const float one=1.0, two=2.0, huge = 1.0e30; 24
|
23float 24tanhf(float x) 25{ 26 float t,z; 27 int32_t jx,ix; 28 29 GET_FLOAT_WORD(jx,x); 30 ix = jx&0x7fffffff;
--- 25 unchanged lines hidden --- | 25float 26tanhf(float x) 27{ 28 float t,z; 29 int32_t jx,ix; 30 31 GET_FLOAT_WORD(jx,x); 32 ix = jx&0x7fffffff;
--- 25 unchanged lines hidden --- |