Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Add remainder #196

Merged
merged 2 commits into from
Jul 4, 2019
Merged

Add remainder #196

merged 2 commits into from
Jul 4, 2019

Conversation

Schultzer
Copy link
Contributor

This PR adds the missing remainder and remainderf found in musl libm respectly https://git.musl-libc.org/cgit/musl/tree/src/math/remainder.c and https://git.musl-libc.org/cgit/musl/tree/src/math/remainderf.c

Signed-off-by: Benjamin Schultzer benjamin@schultzer.com

This PR adds the missing `remainder` and `remainderf` found in musl libm respectly https://git.musl-libc.org/cgit/musl/tree/src/math/remainder.c and https://git.musl-libc.org/cgit/musl/tree/src/math/remainderf.c

Signed-off-by: Benjamin Schultzer <benjamin@schultzer.com>
@alexcrichton
Copy link
Member

I think the interface here doesn't match musl? I think that may also mean there's a bug in the auto-generated tests since they didn't catch this?

@Schultzer
Copy link
Contributor Author

Schultzer commented Jul 3, 2019

Great catch, actually what we want to return here is just the float from remque.

Signed-off-by: Benjamin Schultzer <benjamin@schultzer.com>
@alexcrichton alexcrichton merged commit f43bc0d into rust-lang:master Jul 4, 2019
tgross35 pushed a commit that referenced this pull request Apr 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants