Skip to content

Commit

Permalink
update alignedAlloc size
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjulek committed Jan 25, 2024
1 parent 47552c8 commit f46dfb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssimulacra2.zig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inline fn process(src8a: [3][*]const u8, src8b: [3][*]const u8, stride8: usize,
};

const wh: usize = stride * height;
const tmp_arr = allocator.alignedAlloc(f32, 32, width * height * 18) catch unreachable;
const tmp_arr = allocator.alignedAlloc(f32, 32, wh * 18) catch unreachable;
defer allocator.free(tmp_arr);
const tempp = tmp_arr.ptr;
const srcp1b = [3][*]f32{ tempp, tempp + wh, tempp + (wh * 2) };
Expand Down

0 comments on commit f46dfb3

Please sign in to comment.