overdrivenpotato / rust-psp

Rust on PSP. Panic and allocation support. Access PSP system libraries.
Other
638 stars 33 forks source link

Add vfpu sin function and tests for it #67

Closed MrAwesome closed 2 years ago

MrAwesome commented 4 years ago

Looks like there isn't a tan func, so just sin for now. Also added a check that the cos/sin functions generated here work as the corresponding function in core::intrinsics.

I'll come up with a benchmark for these to see if the VFPU functions including travel time to/from the unit are actually faster than their mathematical equivalent on the CPU. If they really are substantially (or even marginally) faster than the equivalent calculation, I'll go through and generate similar functions for the other mathematical operations the VFPU offers.

sajattack commented 2 years ago

Potentially superceded by #109