-
-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP]Add support for float basic (ieee754) #2005
Conversation
RzILBitVector *s; ///< The bitvector of float | ||
} RzILFloat; | ||
|
||
RZ_API ut32 rzil_float_get_exp_len(RZ_NONNULL RzILFloat *f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these functions should be named rz_il_*()
not rzil_*()
.
Please implement a |
} | ||
} | ||
|
||
ut32 rzil_float_get_exp_start_pos(RZ_NONNULL RzILFloat *f) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be static inline
if (!result || !bv) { | ||
return NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove !bv
and add the rz_return_val_if_fail
before checking r
and bv
.
Add float type test and passes all Add infinte and some helper functions Add basic support of float Add basic support of float
63a66e3
to
4ed9098
Compare
@Heersin were there any updates since? |
I think all of the code that exists at the moment here should go into RzUtil and have any IL reference removed. Having a float library independently of the IL can be useful also for other things, similar to bitvectors. Then the IL ops can be built on top. |
So it would be better to keep this in RzUtil just like the bitvector now. |
@Heersin how is it going? Were there any updates since? Could you please also rebase on top of the latest |
Recently working on float test basic arithmetic cases and debugging (https://github.com/Heersin/rizin/tree/rz_util_float). I will continue it next week |
@Heersin, do you plan to rebase and continue in this PR/branch, or should we close it? |
I would like to close this one. and make a new for RzIL seperately |
Your checklist for this pull request
Detailed description
Working in progress. Create this PR for early review.
See http://binaryanalysisplatform.github.io/bap/api/master/bap-core-theory/Bap_core_theory/Theory/module-type-Float/index.html
Add support for ieee754 float operations
Test plan
test_il_definitions
Partially address #1461