Skip to content

math.unsigned: fix quo_rem(), add tests#24859

Merged
spytheman merged 1 commit into
vlang:masterfrom
tankf33der:quo_rem
Jul 7, 2025
Merged

math.unsigned: fix quo_rem(), add tests#24859
spytheman merged 1 commit into
vlang:masterfrom
tankf33der:quo_rem

Conversation

@tankf33der

@tankf33der tankf33der commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

Current quo_rem() is broken.
In order not to create new problems, I took the implementation from the zig. This is a line by line translation.
Tested with many tests and many ranges against gmplib.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-23292

@spytheman

Copy link
Copy Markdown
Contributor

Excellent work.

@spytheman spytheman merged commit e62ed47 into vlang:master Jul 7, 2025
76 checks passed
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.

2 participants