Stream: general

Topic: ✔ about fmax nan.


view this post on Zulip yang yu (Jul 13 2022 at 01:33):

https://docs.rs/cranelift-codegen/latest/cranelift_codegen/ir/trait.InstBuilder.html

If either operand is NaN, I think can always return mantissa that most significant bit is 1 and the rest is 0.
is that ok?

view this post on Zulip yang yu (Jul 13 2022 at 01:36):

it's easy to implement.

view this post on Zulip Dan Gohman (Jul 13 2022 at 01:37):

Yes, although I believe you'll also need to make sure the result is a qNaN

view this post on Zulip Dan Gohman (Jul 13 2022 at 01:38):

Ah, sorry, I misread what you wrote. What you describe sounds good.

view this post on Zulip yang yu (Jul 13 2022 at 01:41):

ok,thanks.

view this post on Zulip Notification Bot (Aug 10 2022 at 00:45):

yang yu has marked this topic as resolved.


Last updated: Nov 22 2024 at 17:03 UTC