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

Replace int types with fixed point #67

Open
jameshegarty opened this issue Sep 20, 2017 · 0 comments
Open

Replace int types with fixed point #67

jameshegarty opened this issue Sep 20, 2017 · 0 comments
Labels

Comments

@jameshegarty
Copy link
Owner

jameshegarty commented Sep 20, 2017

Replace the uint/int types with fixed point types. Have them behave like regular int types when the exponent is 0. This will cut down on the number of types we have to support.

Have 2 sets of math operators, one that expands bits to keep all precision (floating-point emulation behavior), and one that keeps bits the same (this should be the default probably).

For now, if fixed point exponent doesn't match, just fail in typechecking.

We may also want another variant, which is saturating ops?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant