Fix forder return type and add feq macro (#3570)
This commit is contained in:
parent
70a0244e04
commit
295faad6ca
4 changed files with 4 additions and 2 deletions
|
|
@ -914,7 +914,7 @@ RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_fpred(RZ_NONNULL RzILOpFloat *f) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_forder(RZ_NONNULL RzILOpFloat *x, RZ_NONNULL RzILOpFloat *y) {
|
||||
RZ_API RZ_OWN RzILOpBool *rz_il_op_new_forder(RZ_NONNULL RzILOpFloat *x, RZ_NONNULL RzILOpFloat *y) {
|
||||
rz_return_val_if_fail(x && y, NULL);
|
||||
RzILOpFloat *ret;
|
||||
rz_il_op_new_2(Float, RZ_IL_OP_FORDER, RzILOpArgsForder, forder, x, y);
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@
|
|||
#define FMOD(rmode, flx, fly) rz_il_op_new_fdiv(rmode, flx, fly)
|
||||
#define FPOW(rmode, flx, fly) rz_il_op_new_fpow(rmode, flx, fly)
|
||||
#define FMAD(rmode, flx, fly, flz) rz_il_op_new_fmad(rmode, flx, fly, flz)
|
||||
#define FEQ(flx, fly) NOT(OR(FORDER(x, y), FORDER(y, x)))
|
||||
|
||||
#define IL_FALSE rz_il_op_new_b0()
|
||||
#define IL_TRUE rz_il_op_new_b1()
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
#undef FMOD
|
||||
#undef FPOW
|
||||
#undef FMAD
|
||||
#undef FEQ
|
||||
|
||||
#undef IL_FALSE
|
||||
#undef IL_TRUE
|
||||
|
|
|
|||
|
|
@ -753,7 +753,7 @@ RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_fconvert(RzFloatFormat format, RzFloatRM
|
|||
RZ_API RZ_OWN RzILOpBool *rz_il_op_new_frequal(RzFloatRMode x, RzFloatRMode y);
|
||||
RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_fsucc(RZ_NONNULL RzILOpFloat *f);
|
||||
RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_fpred(RZ_NONNULL RzILOpFloat *f);
|
||||
RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_forder(RZ_NONNULL RzILOpFloat *x, RZ_NONNULL RzILOpFloat *y);
|
||||
RZ_API RZ_OWN RzILOpBool *rz_il_op_new_forder(RZ_NONNULL RzILOpFloat *x, RZ_NONNULL RzILOpFloat *y);
|
||||
RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_fround(RzFloatRMode rmode, RZ_NONNULL RzILOpFloat *f);
|
||||
RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_fsqrt(RzFloatRMode rmode, RZ_NONNULL RzILOpFloat *f);
|
||||
RZ_API RZ_OWN RzILOpFloat *rz_il_op_new_frsqrt(RzFloatRMode rmode, RZ_NONNULL RzILOpFloat *f);
|
||||
|
|
|
|||
Loading…
Reference in a new issue