mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-07 10:23:30 +02:00
Insert space for additional async exercises
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
--- exercises/112_vectors.zig 2025-08-15 15:17:57.840348083 +0200
|
||||
+++ answers/112_vectors.zig 2026-04-02 10:51:15.819831812 +0200
|
||||
@@ -121,8 +121,8 @@
|
||||
|
||||
const Vec4 = @Vector(4, 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 max_diff = @reduce(.Max, abs_diff_vec);
|
||||
return max_diff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user