aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-03-05 00:01:15 -0500
committerJacob Young <jacobly0@users.noreply.github.com>2023-03-05 02:59:02 -0500
commitc478c7609e4529267d1ce030577777e836ffc10b (patch)
treee7973c148c363ba3957015597b585e7610e2aeb1 /src/value.zig
parentb2e9c0d0ff1dc6799fe3b5fdbecd53af176f37b7 (diff)
downloadzig-c478c7609e4529267d1ce030577777e836ffc10b.tar.gz
zig-c478c7609e4529267d1ce030577777e836ffc10b.zip
CBE: implement vector operations
Also, bigint add and sub which is all I was actually trying to do.
Diffstat (limited to 'src/value.zig')
-rw-r--r--src/value.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.zig b/src/value.zig
index 4a5683df36..00bf59ca38 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -3319,7 +3319,7 @@ pub const Value = extern union {
}
}
- fn floatToValue(float: f128, arena: Allocator, dest_ty: Type, target: Target) !Value {
+ pub fn floatToValue(float: f128, arena: Allocator, dest_ty: Type, target: Target) !Value {
switch (dest_ty.floatBits(target)) {
16 => return Value.Tag.float_16.create(arena, @floatCast(f16, float)),
32 => return Value.Tag.float_32.create(arena, @floatCast(f32, float)),