Skip to content
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

Implement IEEE-754 64b Floats #53

Open
ktemkin opened this issue Sep 23, 2024 · 0 comments
Open

Implement IEEE-754 64b Floats #53

ktemkin opened this issue Sep 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ktemkin
Copy link
Collaborator

ktemkin commented Sep 23, 2024

Description

Floating point behaviors are not supported natively on CairoVM. While there are myriad soft-float implementations out there, we need to implement such a thing with reasonable performance on Cairo. This should provide the following operations:

  • +
  • -
  • *
  • /
  • %
  • **
  • abs
  • shr
  • shl
  • Negate
  • Extend
  • divmod
  • cmp

This must result in an IEEE-754 64-bit float (double) compliant floating point implementation, and should behave as expected for real hardware and machine models. Note that this does not include the stateful behavior, as this is accounted for by the FPU (#48, #54).

This can also likely borrow some work from the 32 bit float implementation (#52).

@iamrecursion iamrecursion added the enhancement New feature or request label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants