aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-06-18 20:32:43 -0400
committerGitHub <noreply@github.com>2020-06-18 20:32:43 -0400
commit5ea0f589c92018b4596ebbbd5e0ce3b71467585c (patch)
tree10cbcb71acd74dcdc3e43d944cb07141639d3d9e /lib/std/math.zig
parentcaaa26c9f0db92c463a826f15c8392162be2e037 (diff)
parenteb7fad28f8f11b985c8ee6fbeb4a68345a9b3a5e (diff)
downloadzig-5ea0f589c92018b4596ebbbd5e0ce3b71467585c.tar.gz
zig-5ea0f589c92018b4596ebbbd5e0ce3b71467585c.zip
Merge pull request #5625 from antlilja/master
Improve support for f128 and comptime_float operations
Diffstat (limited to 'lib/std/math.zig')
-rw-r--r--lib/std/math.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig
index 5cf6d40d8a..799c42846b 100644
--- a/lib/std/math.zig
+++ b/lib/std/math.zig
@@ -122,6 +122,11 @@ pub fn forceEval(value: var) void {
const p = @ptrCast(*volatile f64, &x);
p.* = x;
},
+ f128 => {
+ var x: f128 = undefined;
+ const p = @ptrCast(*volatile f128, &x);
+ p.* = x;
+ },
else => {
@compileError("forceEval not implemented for " ++ @typeName(T));
},