| author | |
| committer | |
| log | b02384e03d1e52d72ccf7dd7d3cec30f05b51082 |
| tree | 8be172a00da57d14f7fac8b5b4b46a8f141951d4 |
| parent | d28b445329fbee865a10568e997241079d4d71e4 |
2 files changed, 4 insertions(+), 4 deletions(-)
lib/std/math/cos.zig+2-2| ... | ... | @@ -26,7 +26,7 @@ pub fn cos(x: anytype) @TypeOf(x) { |
| 26 | 26 | }; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | pub fn cos32(x: f32) f32 { | |
| 29 | fn cos32(x: f32) f32 { | |
| 30 | 30 | // Small multiples of pi/2 rounded to double precision. |
| 31 | 31 | const c1pio2: f64 = 1.0 * math.pi / 2.0; // 0x3FF921FB, 0x54442D18 |
| 32 | 32 | const c2pio2: f64 = 2.0 * math.pi / 2.0; // 0x400921FB, 0x54442D18 |
| ... | ... | @@ -83,7 +83,7 @@ pub fn cos32(x: f32) f32 { |
| 83 | 83 | }; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | pub fn cos64(x: f64) f64 { | |
| 86 | fn cos64(x: f64) f64 { | |
| 87 | 87 | var ix = @bitCast(u64, x) >> 32; |
| 88 | 88 | ix &= 0x7fffffff; |
| 89 | 89 |
lib/std/math/tan.zig+2-2| ... | ... | @@ -28,7 +28,7 @@ pub fn tan(x: anytype) @TypeOf(x) { |
| 28 | 28 | }; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | pub fn tan32(x: f32) f32 { | |
| 31 | fn tan32(x: f32) f32 { | |
| 32 | 32 | // Small multiples of pi/2 rounded to double precision. |
| 33 | 33 | const t1pio2: f64 = 1.0 * math.pi / 2.0; // 0x3FF921FB, 0x54442D18 |
| 34 | 34 | const t2pio2: f64 = 2.0 * math.pi / 2.0; // 0x400921FB, 0x54442D18 |
| ... | ... | @@ -72,7 +72,7 @@ pub fn tan32(x: f32) f32 { |
| 72 | 72 | return kernel.__tandf(y, n & 1 != 0); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | pub fn tan64(x: f64) f64 { | |
| 75 | fn tan64(x: f64) f64 { | |
| 76 | 76 | var ix = @bitCast(u64, x) >> 32; |
| 77 | 77 | ix &= 0x7fffffff; |
| 78 | 78 |