Skip to content

Conversation

@sunfishcode
Copy link
Member

Use wasm's builtin min and max operators to implement libc fmin,
fmax, fminf, and fmaxf`, by handling the NaN cases explicitly.

Credit to emscripten-core/emscripten#9689
for spotting this opportunity!

Use wasm's builtin min and max operators to implement libc `fmin`,
`fmax, `fminf`, and `fmaxf`, by handling the NaN cases explicitly.

Credit to emscripten-core/emscripten#9689
for spotting this opportunity!
@sunfishcode
Copy link
Member Author

Could I interest anyone in reviewing this simple patch? 🙂

Copy link
Collaborator

@pchickey pchickey left a comment

Choose a reason for hiding this comment

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

ship it!

Copy link
Contributor

@mikevoronov mikevoronov left a comment

Choose a reason for hiding this comment

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

LGTM

@sunfishcode sunfishcode merged commit cf81683 into master Nov 20, 2019
@sunfishcode
Copy link
Member Author

Thanks!

@sunfishcode sunfishcode deleted the fmin-fmax branch November 20, 2019 19:13
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.

5 participants