Skip to content

Commit

Permalink
Improve Vector
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Oct 22, 2023
1 parent 2a8f876 commit 37b8847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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) };
Expand Down

0 comments on commit 37b8847

Please sign in to comment.