Debian Codegraph @

include/core/hist/detail/data/IntrinsicHelpers.h

raw
1 // SPDX-License-Identifier: LGPL-3.0-or-later
2 // Author: Kristian Lytje
3
4 #pragma once
5
6 #include <hist/detail/data/IntrinsicMacros.h>
7
8 namespace ausaxs::hist::detail {
9 static inline float squared_dot_product(const float* v1, const float* v2) noexcept {
10 float dx = v1[0] - v2[0];
11 float dy = v1[1] - v2[1];
12 float dz = v1[2] - v2[2];
13 return dx*dx + dy*dy + dz*dz;
14 }
15 }