3 ms·
Can you explain the expf_fast function?
by aravindet 8y ago
Can you explain the expf_fast function?
- s-macke 8y agoActually no. I found them by googling. You can find more tricks in my utils file. https://github.com/s-macke/Interplanetary-Postal-Service/blob/master/gameWASM/utils.c https://github.com/s-macke/Interplanetary-Postal-Service/blo... I guess you can read an explanation on a similar problem here: https://en.wikipedia.org/wiki/Fast_inverse_square_root https://en.wikipedia.org/wiki/Fast_inverse_square_root
- striking 8y agoLooks like it's from here https://github.com/ekmett/approximate/blob/master/cbits/fast.c#L103-L109 https://github.com/ekmett/approximate/blob/master/cbits/fast..., there's an explanation here https://nic.schraudolph.org/pubs/Schraudolph99.pdf https://nic.schraudolph.org/pubs/Schraudolph99.pdf