Skip to content

Commit 3c048e9

Browse files
bors[bot]japaric
andcommitted
115: add more copyright notices r=japaric a=japaric Co-authored-by: Jorge Aparicio <[email protected]>
2 parents fd8e648 + 54af49d commit 3c048e9

13 files changed

+191
-0
lines changed

src/math/acosf.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/e_acosf.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
116
use super::sqrtf::sqrtf;
217

318
const PIO2_HI: f32 = 1.5707962513e+00; /* 0x3fc90fda */

src/math/asinf.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/e_asinf.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
116
use super::fabsf::fabsf;
217
use super::sqrt::sqrt;
318

src/math/atanf.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/s_atanf.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
116
use super::fabsf;
217

318
const ATAN_HI: [f32; 4] = [

src/math/cosf.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/s_cosf.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
117
use super::{k_cosf, k_sinf, rem_pio2f};
218

319
use core::f64::consts::FRAC_PI_2;

src/math/expm1.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
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+
113
use core::f64;
214

315
const O_THRESHOLD: f64 = 7.09782712893383973096e+02; /* 0x40862E42, 0xFEFA39EF */

src/math/expm1f.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/s_expm1f.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
116
const O_THRESHOLD: f32 = 8.8721679688e+01; /* 0x42b17180 */
217
const LN2_HI: f32 = 6.9313812256e-01; /* 0x3f317180 */
318
const LN2_LO: f32 = 9.0580006145e-06; /* 0x3717f7d1 */

src/math/k_cosf.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/k_cosf.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
117
/* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */
218
const C0: f64 = -0.499999997251031003120; /* -0x1ffffffd0c5e81.0p-54 */
319
const C1: f64 = 0.0416666233237390631894; /* 0x155553e1053a42.0p-57 */

src/math/k_sinf.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/k_sinf.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
117
/* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */
218
const S1: f64 = -0.166666666416265235595; /* -0x15555554cbac77.0p-55 */
319
const S2: f64 = 0.0083333293858894631756; /* 0x111110896efbb2.0p-59 */

src/math/k_tanf.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
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+
112
/* |tan(x)/x - t(x)| < 2**-25.5 (~[-2e-08, 2e-08]). */
213
const T: [f64; 6] = [
314
0.333331395030791399758, /* 0x15554d3418c99f.0p-54 */

src/math/rem_pio2_large.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
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+
113
use super::floor;
214
use super::scalbn;
315

src/math/rem_pio2f.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/e_rem_pio2f.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
117
use super::rem_pio2_large;
218

319
use core::f64;

src/math/sinf.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/s_sinf.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
117
use super::{k_cosf, k_sinf, rem_pio2f};
218

319
use core::f64::consts::FRAC_PI_2;

src/math/tanf.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/s_tanf.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
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+
117
use super::{k_tanf, rem_pio2f};
218

319
use core::f64::consts::FRAC_PI_2;

0 commit comments

Comments
 (0)