aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/inf.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-04-12 06:37:12 -0400
committerGitHub <noreply@github.com>2022-04-12 06:37:12 -0400
commit17631cb2d30bf2d7b10401cf8f784a599bade5c5 (patch)
tree8ba131f77ef38c531711c7b1147c59e993cab628 /lib/std/math/inf.zig
parent17daba1806896a2e45a2c1b1969a540f44a64d86 (diff)
parent9b5c02022f997d01bcfcfd79ba4c721af1bd9a6c (diff)
downloadzig-17631cb2d30bf2d7b10401cf8f784a599bade5c5.tar.gz
zig-17631cb2d30bf2d7b10401cf8f784a599bade5c5.zip
Merge pull request #11401 from viriuwu/float-category-misc
math: simplify inf (+f80 support), deprecate old constants (followup for #10133)
Diffstat (limited to 'lib/std/math/inf.zig')
-rw-r--r--lib/std/math/inf.zig14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/std/math/inf.zig b/lib/std/math/inf.zig
deleted file mode 100644
index fd7d7c4380..0000000000
--- a/lib/std/math/inf.zig
+++ /dev/null
@@ -1,14 +0,0 @@
-const std = @import("../std.zig");
-const math = std.math;
-
-/// Returns value inf for the type T.
-pub fn inf(comptime T: type) T {
- return switch (T) {
- f16 => math.inf_f16,
- f32 => math.inf_f32,
- f64 => math.inf_f64,
- f80 => math.inf_f80,
- f128 => math.inf_f128,
- else => @compileError("inf not implemented for " ++ @typeName(T)),
- };
-}