best trig approximations in x86 asm | SCHIZONE EP-31
xmdi
31st video in a series on scientific computing from scratch using x86-64 assembly. This video compares performance, accuracy, and memory footprint of 9 different sine & cosine approximation algorithms.
code: https://github.com/xmdi/SCHIZONE
6 good resources:
cordic alg (integers): https://nonagon.org/ExLibris/sites/default/files/pdf/Cordic-Faster-Sin-Cos.pdf
cordic alg (wiki/floats): https://en.wikipedia.org/wiki/CORDIC
chebyshev coefficients (i think typo in here): https://www.ams.org/journals/mcom/1980-34-149/S0025-5718-1980-0551302-5/S0025-5718-1980-0551302-5.pdf
x86 instruction reference: https://www.felixcloutier.com/x86/index.html
linux/freebsd syscall concordance: https://www.lurklurk.org/concordance.html
old draft of System-V ABI: https://refspecs.linuxbase.org/elf/x86_64-abi-0.99.pdf
secret discord link: https://xmdi.us/misc/discord.html ... https://www.youtube.com/watch?v=pbIhg0NF6pI
235981403 Bytes