From 37b8847e0c6b11d899afab850fa76cb91b563ffd Mon Sep 17 00:00:00 2001 From: Clemens Akens Date: Sun, 22 Oct 2023 23:39:13 +0200 Subject: [PATCH] Improve Vector --- src/vector.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector.zig b/src/vector.zig index 3ce2a7d..ccde174 100644 --- a/src/vector.zig +++ b/src/vector.zig @@ -3,7 +3,7 @@ const Self = @This(); const std = @import("std"); const simd = @import("simd.zig"); -values: []f32, +values: []align(std.atomic.cache_line) f32, pub fn createLeaky(allocator: std.mem.Allocator, n_values: usize) !Self { return .{ .values = try allocator.alignedAlloc(f32, std.atomic.cache_line, n_values) };