Skip to content

Carl/donet2#72

Merged
CarlVerret merged 30 commits intomasterfrom
carl/donet2
Mar 5, 2021
Merged

Carl/donet2#72
CarlVerret merged 30 commits intomasterfrom
carl/donet2

Conversation

@CarlVerret
Copy link
Owner

There's something I don't understand with Log2SoftwareFallback as it was pushed previously. I pushed a workaround for now. All test are passing.

@CarlVerret
Copy link
Owner Author

git workflow will soon be modified for .net 4.7.1 support

@CarlVerret CarlVerret requested a review from lemire March 4, 2021 17:30
if (value >> 28 == 0) { n += 4; value <<= 4; }
if (value >> 30 == 0) { n += 2; value <<= 2; }
n -= (int) (value >> 31);
return n;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I did not validate this algorithm (I am going to trust you). It seems reasonable. It is not going to be fast, but that's fine.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I would prefer to understand why the previous version wasn't working as it should... at least we've got a workaround for now.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would not waste a lot of time on it. If you are convinced that it is something important, just go with what works, and create an issue explaining your concerns. Someone might pick it up. If not, your solution is fine. I would absolutely release 2.0 with this new code of yours.

@lemire
Copy link
Collaborator

lemire commented Mar 4, 2021

@CarlVerret Why did you remove the -0 tests? We do want to parse -0 to -0. The platform can do what it likes, but we should check that we do it properly, like .NET 5.

See How does your programming language handle “minus zero” (-0.0)?

@CarlVerret
Copy link
Owner Author

Actually I moved it to another test thats doesn't depends on displayed value

@lemire
Copy link
Collaborator

lemire commented Mar 4, 2021

Actually I moved it to another test thats doesn't depends on displayed value

Good!

@CarlVerret CarlVerret merged commit 687d1a0 into master Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants