Assembly code for sin(x) using Taylor expansion

后端 未结 4 1702
一整个雨季
一整个雨季 2021-02-05 15:53

In x86 Linux, how can I implement sin(x) in assembly code using Taylor Expansion?

4条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 16:17

    Would this article help you?

    http://www.coranac.com/2009/07/sines/

    It has a couple of algorithms for computing approximate sin(x) values, with both C and assembly versions. Granted, it's ARM assembly, but the gist of it should translate easily to x86 or similar.

提交回复
热议问题