summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2024-11-07 15:01:59 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2024-11-07 15:01:59 +0100
commitbfed6600205504a3fd2e3d3922ca5da6995224a7 (patch)
tree7d30ba2c23839687a2d45c8711bb3fef106114d8 /patches
parent46e8fc0b614bd3187ab6b2c6b4cc83996fb8bf56 (diff)
Fixed formating, created patch file.
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/109_vectors.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/patches/109_vectors.patch b/patches/patches/109_vectors.patch
index 4b11da9..bf18cc0 100644
--- a/patches/patches/109_vectors.patch
+++ b/patches/patches/109_vectors.patch
@@ -1,12 +1,12 @@
---- exercises/109_vectors.zig 2024-11-03 11:17:00.928652000 +1000
-+++ answers/109_vectors.zig 2024-11-07 13:11:23.838667200 +1000
+--- exercises/109_vectors.zig 2024-11-07 14:57:09.673383618 +0100
++++ answers/109_vectors.zig 2024-11-07 14:22:59.069150138 +0100
@@ -121,8 +121,8 @@
const Vec4 = @Vector(4, f32);
- fn calcMaxPairwiseDiffNew( a : Vec4, b : Vec4) f32 {
+ fn calcMaxPairwiseDiffNew(a: Vec4, b: Vec4) f32 {
- const abs_diff_vec = ???;
- const max_diff = @reduce(???, abs_diff_vec);
-+ const abs_diff_vec = @abs( a - b );
++ const abs_diff_vec = @abs(a - b);
+ const max_diff = @reduce(.Max, abs_diff_vec);
return max_diff;
}