File tree 13 files changed +191
-0
lines changed 13 files changed +191
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/e_acosf.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
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
+
1
16
use super :: sqrtf:: sqrtf;
2
17
3
18
const PIO2_HI : f32 = 1.5707962513e+00 ; /* 0x3fc90fda */
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/e_asinf.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
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
+
1
16
use super :: fabsf:: fabsf;
2
17
use super :: sqrt:: sqrt;
3
18
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/s_atanf.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
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
+
1
16
use super :: fabsf;
2
17
3
18
const ATAN_HI : [ f32 ; 4 ] = [
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/s_cosf.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
4
+ * Optimized by Bruce D. Evans.
5
+ */
6
+ /*
7
+ * ====================================================
8
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9
+ *
10
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
11
+ * Permission to use, copy, modify, and distribute this
12
+ * software is freely granted, provided that this notice
13
+ * is preserved.
14
+ * ====================================================
15
+ */
16
+
1
17
use super :: { k_cosf, k_sinf, rem_pio2f} ;
2
18
3
19
use core:: f64:: consts:: FRAC_PI_2 ;
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/s_expm1.c */
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
+
1
13
use core:: f64;
2
14
3
15
const O_THRESHOLD : f64 = 7.09782712893383973096e+02 ; /* 0x40862E42, 0xFEFA39EF */
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/s_expm1f.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
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
+
1
16
const O_THRESHOLD : f32 = 8.8721679688e+01 ; /* 0x42b17180 */
2
17
const LN2_HI : f32 = 6.9313812256e-01 ; /* 0x3f317180 */
3
18
const LN2_LO : f32 = 9.0580006145e-06 ; /* 0x3717f7d1 */
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/k_cosf.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
4
+ * Debugged and optimized by Bruce D. Evans.
5
+ */
6
+ /*
7
+ * ====================================================
8
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9
+ *
10
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
11
+ * Permission to use, copy, modify, and distribute this
12
+ * software is freely granted, provided that this notice
13
+ * is preserved.
14
+ * ====================================================
15
+ */
16
+
1
17
/* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */
2
18
const C0 : f64 = -0.499999997251031003120 ; /* -0x1ffffffd0c5e81.0p-54 */
3
19
const C1 : f64 = 0.0416666233237390631894 ; /* 0x155553e1053a42.0p-57 */
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/k_sinf.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
4
+ * Optimized by Bruce D. Evans.
5
+ */
6
+ /*
7
+ * ====================================================
8
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9
+ *
10
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
11
+ * Permission to use, copy, modify, and distribute this
12
+ * software is freely granted, provided that this notice
13
+ * is preserved.
14
+ * ====================================================
15
+ */
16
+
1
17
/* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */
2
18
const S1 : f64 = -0.166666666416265235595 ; /* -0x15555554cbac77.0p-55 */
3
19
const S2 : f64 = 0.0083333293858894631756 ; /* 0x111110896efbb2.0p-59 */
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/k_tan.c */
2
+ /*
3
+ * ====================================================
4
+ * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
5
+ *
6
+ * Permission to use, copy, modify, and distribute this
7
+ * software is freely granted, provided that this notice
8
+ * is preserved.
9
+ * ====================================================
10
+ */
11
+
1
12
/* |tan(x)/x - t(x)| < 2**-25.5 (~[-2e-08, 2e-08]). */
2
13
const T : [ f64 ; 6 ] = [
3
14
0.333331395030791399758 , /* 0x15554d3418c99f.0p-54 */
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/k_rem_pio2.c */
2
+ /*
3
+ * ====================================================
4
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5
+ *
6
+ * Developed at SunSoft, 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
+
1
13
use super :: floor;
2
14
use super :: scalbn;
3
15
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/e_rem_pio2f.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
4
+ * Debugged and optimized by Bruce D. Evans.
5
+ */
6
+ /*
7
+ * ====================================================
8
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9
+ *
10
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
11
+ * Permission to use, copy, modify, and distribute this
12
+ * software is freely granted, provided that this notice
13
+ * is preserved.
14
+ * ====================================================
15
+ */
16
+
1
17
use super :: rem_pio2_large;
2
18
3
19
use core:: f64;
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/s_sinf.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
4
+ * Optimized by Bruce D. Evans.
5
+ */
6
+ /*
7
+ * ====================================================
8
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9
+ *
10
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
11
+ * Permission to use, copy, modify, and distribute this
12
+ * software is freely granted, provided that this notice
13
+ * is preserved.
14
+ * ====================================================
15
+ */
16
+
1
17
use super :: { k_cosf, k_sinf, rem_pio2f} ;
2
18
3
19
use core:: f64:: consts:: FRAC_PI_2 ;
Original file line number Diff line number Diff line change
1
+ /* origin: FreeBSD /usr/src/lib/msun/src/s_tanf.c */
2
+ /*
3
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
4
+ * Optimized by Bruce D. Evans.
5
+ */
6
+ /*
7
+ * ====================================================
8
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9
+ *
10
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
11
+ * Permission to use, copy, modify, and distribute this
12
+ * software is freely granted, provided that this notice
13
+ * is preserved.
14
+ * ====================================================
15
+ */
16
+
1
17
use super :: { k_tanf, rem_pio2f} ;
2
18
3
19
use core:: f64:: consts:: FRAC_PI_2 ;
You can’t perform that action at this time.
0 commit comments