Skip to content

Commit

Permalink
align context on 16 byte boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
graphitemaster committed Aug 20, 2023
1 parent ec36862 commit 86733ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "allocator.h"
#include "profiler.h"

typedef struct Context Context;

enum Error {
Expand All @@ -19,7 +20,7 @@ typedef enum Error Error;
#define THROW(error) \
longjmp((context)->jmp, CAST(int, (error)))

struct Context {
struct ALIGN(16) Context {
Allocator allocator;
Profiler profiler;
jmp_buf jmp;
Expand Down

0 comments on commit 86733ad

Please sign in to comment.