Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document vfpu #42

Merged
merged 1 commit into from
Sep 1, 2024
Merged

Document vfpu #42

merged 1 commit into from
Sep 1, 2024

Conversation

dogo
Copy link
Owner

@dogo dogo commented Sep 1, 2024

This PR introduces a set of optimized mathematical functions that leverage the PSP's Vector Floating Point Unit (VFPU) for fast computation of trigonometric operations. The main functions added are:

  • oslVfpu_sinf: Calculates the sine of an angle (in radians) multiplied by a radius.
  • oslVfpu_cosf: Calculates the cosine of an angle (in radians) multiplied by a radius.

These functions are specifically designed for high performance on the PSP platform, making them ideal for scenarios requiring efficient trigonometric calculations.

Key Features:

  • Optimized for PSP: Uses the VFPU, ensuring very fast execution.
  • Trigonometric Calculations: Provides sine and cosine functions with support for radians and a scaling radius.
  • Doxygen Documentation: The code is fully documented, facilitating easy understanding and maintenance.

This PR is a significant enhancement for projects requiring precise and fast mathematical operations on the PSP, particularly in graphics or physics simulations.

@dogo dogo merged commit b798cdf into master Sep 1, 2024
6 checks passed
@dogo dogo deleted the feature/doc-vfpu branch September 1, 2024 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant