From eb7fad28f8f11b985c8ee6fbeb4a68345a9b3a5e Mon Sep 17 00:00:00 2001 From: antlilja Date: Wed, 17 Jun 2020 18:18:45 +0200 Subject: Improve f128 standard library support * Add functions: floor128, ceil128, trunc128 and round128 * Add corresponding tests --- lib/std/math.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/std/math.zig') 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)); }, -- cgit v1.2.3