Skip to content

Commit

Permalink
Encoder: Change FE_NOREG to be usable in C++ without extra casting
Browse files Browse the repository at this point in the history
Only affects API v1 of the encoder, as v2 doesn't have this problem.
  • Loading branch information
J-MR-T authored May 22, 2023
1 parent f9ccffc commit 3b93768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fadec-enc.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typedef int64_t FeOp;
* encoded instruction will be subtracted during encoding. scale must be 1, 2,
* 4, or 8; but is ignored if idx == 0. **/
#define FE_MEM(base,sc,idx,off) (INT64_MIN | ((int64_t) ((base) & 0xfff) << 32) | ((int64_t) ((idx) & 0xfff) << 44) | ((int64_t) ((sc) & 0xf) << 56) | ((off) & 0xffffffff))
#define FE_NOREG 0
#define FE_NOREG ((FeReg) 0)

/** Add segment override prefix. This may or may not generate prefixes for the
* ignored prefixes ES/CS/DS/SS in 64-bit mode. **/
Expand Down

0 comments on commit 3b93768

Please sign in to comment.