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

countLeadingZeros for Fixed #160

Open
tomjaguarpaw opened this issue Jul 15, 2016 · 4 comments
Open

countLeadingZeros for Fixed #160

tomjaguarpaw opened this issue Jul 15, 2016 · 4 comments

Comments

@tomjaguarpaw
Copy link

tomjaguarpaw commented Jul 15, 2016

countLeadingZeros does not currently work for Fixed. My workaround is to convert to Int32 or Int64 and use countLeadingZeros on that, which does work.

@christiaanb
Copy link
Member

But only for Fixed numbers requiring fewer than 65 bits, correct?

@tomjaguarpaw
Copy link
Author

Yes. If I had a bigger Fixed I guess I would split it into several Int64s.

@christiaanb christiaanb reopened this Sep 6, 2018
@christiaanb christiaanb added this to the 1.1 milestone Dec 18, 2018
@martijnbastiaan
Copy link
Member

@leonschoorl This is fixed in #501 right?

@leonschoorl
Copy link
Member

Well, countLeadingZeros on Fixed works in general.

Only constant folding doesn't work

@christiaanb christiaanb modified the milestones: 1.1, 1.2 Jan 16, 2020
@martijnbastiaan martijnbastiaan removed this from the 1.4 milestone Jan 19, 2022
leonschoorl pushed a commit that referenced this issue Jul 31, 2023
CI triggers formal tests if anything in Clash/Contranomy changes, hence
burning a lot of minutes if this change is part of another (WIP) PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants