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

Add AVX implementation of graphene_simd4f_madd() #269

Merged
merged 2 commits into from
Aug 15, 2024
Merged

Add AVX implementation of graphene_simd4f_madd() #269

merged 2 commits into from
Aug 15, 2024

Commits on Aug 12, 2024

  1. Add AVX detection

    All supported compilers define `__AVX__` when building with the AVX
    instruction set enabled.
    ebassi committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    df7fa97 View commit details
    Browse the repository at this point in the history
  2. Use madd() intrinsic if available

    AVX introduced the _mm_fmadd_ps() intrinsic, so we can use it if AVX (or
    an equivalent instruction set) is available when building Graphene.
    
    There is no functional difference in this commit if AVX is not
    available, except that we moved from a generic static inline
    implementation to a SIMD-specific one.
    ebassi committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    b185f55 View commit details
    Browse the repository at this point in the history