News for hackers. Stuff that matters.
Re:Mean of two floating point numbers can be dangerous by Avshalom on Sunday June 05, 2016 @03:33PM (#11842665)
It's pretty obvious visually, you take the exclusive disjunct (a^b -> yellow) divide by two (>>1 -> bright yellow) and then add the intersection (a&b -> green) you use the full intersection because in the basic method (a+b / 2) they would each add their own half of the intersection.

https://imgur.com/PUT4G9Z

There are no comments on this comment yet.