Skip to content

Commit

Permalink
Optimize vitfast memory allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Jan 22, 2024
1 parent 0575074 commit 84ab9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c-core/vitfast.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct vitfast

struct vitfast *vitfast_new(void)
{
struct vitfast *x = malloc(sizeof(struct vitfast));
struct vitfast *x = aligned_alloc(ALIGNMENT, sizeof(struct vitfast));
if (!x) return x;

x->Q = x->maxQ = 0;
Expand Down

0 comments on commit 84ab9a4

Please sign in to comment.