tensorchord / pgvecto.rs

Scalable, Low-latency and Hybrid-enabled Vector Search in Postgres. Revolutionize Vector Search, not Database.
https://docs.pgvecto.rs/getting-started/overview.html
Apache License 2.0
1.53k stars 60 forks source link

fix: use f*_algebraic intrinsics, instead of f*_fast intrinsics #481

Closed usamoi closed 1 month ago

usamoi commented 1 month ago

f_algebraic intrinsics are safer than f_fast intrinsics since they do not assume inputs are not NaNs or Inf.

usamoi commented 1 month ago

it generates same asm: https://godbolt.org/z/bndTTGrEb