|
You are here |
orlp.net | ||
| | | | |
basesandframes.wordpress.com
|
|
| | | | | Download Presentation part 1 Download Presentation part 2 I was trying to interpolate a scaling function on an SPU on PS3 and realized, this device has no math library. How do you write powf() without access to libm? The IEEE754 standard for floating point numbers only covers five fundamental functions - addition, subtraction, multiplication, division... | |
| | | | |
www.sicpers.info
|
|
| | | | | [AI summary] The article explains that IEEE 754 floating-point numbers are not inherently weird but are specialized tools, and encourages programmers to explore alternative number representations like decimals and posits for more general-purpose computing needs. | |
| | | | |
blog.reverberate.org
|
|
| | | | | Author's note: this article used to be called "What Every ComputerProgrammer Should Know About Floating Point, part 1". Some peoplenoted that this was perh... | |
| | | | |
probablydance.com
|
|
| | | 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... | ||