mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-03-15 20:45:05 +00:00
Compare commits
No commits in common. "46e8fc0b614bd3187ab6b2c6b4cc83996fb8bf56" and "75e5e534979d95087709b0cccf4fdf64e74d43d3" have entirely different histories.
46e8fc0b61
...
75e5e53497
1 changed files with 0 additions and 13 deletions
|
@ -1,13 +0,0 @@
|
|||
--- exercises/109_vectors.zig 2024-11-03 11:17:00.928652000 +1000
|
||||
+++ answers/109_vectors.zig 2024-11-07 13:11:23.838667200 +1000
|
||||
@@ -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;
|
||||
}
|
||||
|
Loading…
Reference in a new issue