Skip to content

Commit

Permalink
Add macros for floats
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 13, 2023
1 parent 5dc1771 commit ad2ed47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions handwritten/hexagon_il_h/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
#define HEX_STORE_SLOT_CANCELLED(pkt, slot) hex_cancel_slot(pkt, slot)
#define HEX_FCIRC_ADD(bundle, RxV, offset, mu, CS) hex_fcircadd(bundle, RxV, offset, mu, CS)
#define HEX_GET_CORRESPONDING_CS(pkt, Mu) hex_get_corresponding_cs(pkt, Mu)
#define HEX_GET_INSN_RMODE(insn) (insn->fround_mode)
#define HEX_D_TO_SINT(mode, fval) F2SINT(64, mode, fval)
#define HEX_F_TO_SINT(mode, fval) F2SINT(32, mode, fval)
#define HEX_D_TO_INT(mode, fval) F2INT(64, mode, fval)
#define HEX_F_TO_INT(mode, fval) F2INT(32, mode, fval)

#define HEX_IMMUTABLE_REG (~0)
#define HEX_NOT_MASKED 0

0 comments on commit ad2ed47

Please sign in to comment.