Explore >> Select a destination


You are here

momentsingraphics.de
| | probablydance.com
7.2 parsecs away

Travel
| | Here is a rough approximation of float multiplication (source): float rough_float_multiply(float a, float b) { constexpr uint32_t bias = 0x3f76d000; return bit_cast(bit_cast(a) + bit_cast(b) - bias); } We're casting the floats to ints, adding them, adjusting the exponent, and returning as float. If you think about it for a second you will realize that since...
| | fredrikj.net
5.8 parsecs away

Travel
| |
| | orlp.net
4.5 parsecs away

Travel
| |
| | 2ality.com
30.6 parsecs away

Travel
| This blog post is a quick introduction to TypeScript's notation for static types.