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

UFP64 #31

Merged
merged 24 commits into from
Dec 9, 2022
Merged

UFP64 #31

merged 24 commits into from
Dec 9, 2022

Conversation

rostyslavtyshko
Copy link
Contributor

@rostyslavtyshko rostyslavtyshko commented Oct 6, 2022

Type of change

  • New feature

Changes

The following changes have been made:

Addition of 64-bit fixed-point typs - UFP64

Notes

  • Note 1

Related Issues

Closes #37

@bitzoic bitzoic added New Feature New addition that does not currently exist Lib: Math Label used to filter for the library issue labels Oct 6, 2022
@simonr0204
Copy link
Contributor

Just for posterity, could you fill out the PR description with the change?

Copy link
Member

@bitzoic bitzoic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR needs to be bumped to use forc v0.30.1.

Are you also able to apply some of the comments made to the signed integers PR such as adding a mod.rs for tests?

sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
Copy link
Member

@bitzoic bitzoic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly just cleaning up some comments.

Are you able to add this to the test harness? The tests exist but none of them are called. You can follow this example of how the i8 tests are run here. Here is the full PR that added all the tests: #45

Are you also able to add a README and a SPECIFICATION so that other developers know how to use the library?

sway_libs/src/lib.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/ufp64.sw Outdated Show resolved Hide resolved
Copy link
Member

@bitzoic bitzoic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments on the documentation but overall looks great!! This should be the last of the comments and it is ready for merge.

I also noticed it wasn't added to the source README. Can you add it to the libraries list?

Still waiting on adding the library to the tests as described by the last review.

sway_libs/src/fixed_point/ufp/ufp64/README.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/README.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/README.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/README.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/README.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/README.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/README.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/SPECIFICATION.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/README.md Outdated Show resolved Hide resolved
sway_libs/src/fixed_point/ufp/ufp64/SPECIFICATION.md Outdated Show resolved Hide resolved
Copy link
Contributor

@simonr0204 simonr0204 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@bitzoic bitzoic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!! Another one down 💪

@simonr0204 simonr0204 merged commit f958c34 into master Dec 9, 2022
@simonr0204 simonr0204 deleted the rostyslavtyshko/ufp64 branch December 9, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lib: Math Label used to filter for the library issue New Feature New addition that does not currently exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UFP64
4 participants