Can scalar_4x64 implementations be auto vectorized by compiler? #1110

issue t-anyu openend this issue on May 31, 2022
  1. t-anyu commented at 5:36 am on May 31, 2022: none

    Hey,

    I played around with different compiler settings, but didn’t notice any proper speed gains in pubkey generation, signing and verification. I’m wondering if these scalar functions are optimized to use SIMD instructions by default (-march=native, -O2/O3)? Or would should the code be replaced with intrisinc functions in order to use e.g. AVX.

    Thanks

  2. real-or-random commented at 12:43 pm on June 6, 2022: contributor

    I’m wondering if these scalar functions are optimized to use SIMD instructions by default

    Currently, they are not. One of our primary goals is to have an implementation that performs well on almost all architectures, and our code is in fact pretty good even without SIMD. We’d be interested in SIMD optimizations for common platforms such as x86_64 but I’m not aware that anyone is actively working on this right now.

  3. real-or-random commented at 10:24 am on August 2, 2022: contributor
    Closing because the question has been answered. Feel free to discuss further.
  4. real-or-random closed this on Aug 2, 2022


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-07-15 04:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me