From 97c2ea2f498933cbf46e154acf14126b3821b0e3 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Thu, 7 Nov 2024 15:30:13 +0100 Subject: [PATCH 1/3] Added SIMD. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2aa52cd..c1ace19 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,7 @@ Zig Core Language * [X] Working with C * [X] Threading * [x] Labeled switch +* [x] Vector operations (SIMD) Zig Standard Library From e55f8e8699b6353e0f0f4ff038ad10e456dd6ff6 Mon Sep 17 00:00:00 2001 From: innerviewer Date: Thu, 7 Nov 2024 22:05:00 +0100 Subject: [PATCH 2/3] Added missing space after a sentence. --- exercises/105_threading2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/105_threading2.zig b/exercises/105_threading2.zig index 7ca8f5c..7e16a1c 100644 --- a/exercises/105_threading2.zig +++ b/exercises/105_threading2.zig @@ -39,7 +39,7 @@ // in practice. Because either you don't need the precision, or you use a // calculator in which the number is stored as a very precise constant. // But at some point this constant was calculated and we are doing the same -// now.The question at this point is, how many partial values do we have +// now. The question at this point is, how many partial values do we have // to calculate for which accuracy? // // The answer is chewing, to get 8 digits after the decimal point we need From 0d9458807e88235fcd3511fc044ed43833c0fa56 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Fri, 8 Nov 2024 22:48:37 +0100 Subject: [PATCH 3/3] Deleted unnecessary pointer. --- exercises/046_optionals2.zig | 2 +- patches/patches/046_optionals2.patch | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/046_optionals2.zig b/exercises/046_optionals2.zig index a5436d9..b5fffbb 100644 --- a/exercises/046_optionals2.zig +++ b/exercises/046_optionals2.zig @@ -48,7 +48,7 @@ pub fn main() void { // If e1 and e2 are valid pointers to elephants, // this function links the elephants so that e1's tail "points" to e2. fn linkElephants(e1: ?*Elephant, e2: ?*Elephant) void { - e1.?.*.tail = e2.?; + e1.?.tail = e2.?; } // This function visits all elephants once, starting with the diff --git a/patches/patches/046_optionals2.patch b/patches/patches/046_optionals2.patch index 1b364a6..8fa01a2 100644 --- a/patches/patches/046_optionals2.patch +++ b/patches/patches/046_optionals2.patch @@ -1,5 +1,5 @@ ---- exercises/046_optionals2.zig 2024-09-04 20:51:36.766783971 +0200 -+++ answers/046_optionals2.zig 2024-09-04 20:51:01.389400985 +0200 +--- exercises/046_optionals2.zig 2024-11-08 22:46:25.592875338 +0100 ++++ answers/046_optionals2.zig 2024-11-08 22:46:20.699447951 +0100 @@ -22,7 +22,7 @@ const Elephant = struct {