Pop quiz: given rsqrt(x)=1/sqrt(x), which of these is true for IEEE floats x? 1) rsqrt(x) >= 0 2) !(rsqrt(x) < 0) 3) sign_bit(rsqrt(x)) == 0
-
-
Replying to @FioraAeterna
@FioraAeterna 3) also has the bonus "NaNs are like a box of chocolates, you never know which sign you're gonna get"1 reply 9 retweets 18 likes
Replying to @rygorous
@rygorous @FioraAeterna Don't tell OpenSSL - they'll try to use sign_bit(NAN) as a source of entropy.
0 replies
1 retweet
6 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.