Skip to content

Commit

Permalink
Remove mnemonic usage of svc_param_info
Browse files Browse the repository at this point in the history
So SIMD cmpeq on mnemonics keeps working as intended
  • Loading branch information
wtoorop committed Nov 12, 2024
1 parent 0a7201e commit 654de1e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/generic/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct string {
typedef struct mnemonic mnemonic_t;
struct mnemonic {
struct {
char data[24];
char data[16]; /* MUST be 16 because of usage with SIMD cmpeq */
size_t length;
} key;
uint32_t value;
Expand Down Expand Up @@ -78,7 +78,13 @@ typedef int32_t (*parse_svc_param_t)(
const token_t *);

struct svc_param_info {
mnemonic_t name;
struct {
struct {
char data[24];
size_t length;
} key;
uint32_t value;
} name;
uint32_t has_value;
parse_svc_param_t parse, parse_lax;
};
Expand Down

0 comments on commit 654de1e

Please sign in to comment.