diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-05-20 20:50:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 20:50:43 +0200 |
commit | 4d5fff964685d8df2a48977604b6bd5e73fbbf60 (patch) | |
tree | 3e5d2312b0fd38fb6db799bf51d65b9dd4dc101d /searchlib | |
parent | 54df6d75fbffd3f7d875fde2b2580647cb949ae8 (diff) | |
parent | 35dcb957aee28ea57b03fe9dfacb791f47120ae5 (diff) |
Merge pull request #31250 from vespa-engine/toregge/use-attribute-noinline-instead-of-glibc-macrov8.344.63
Use __attribute__((noinline)) instead of glibc macro __attribute_noin…
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/tensor/distance_functions/distance_functions_benchmark.cpp | 6 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/tensor/temporary_vector_store.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/tests/tensor/distance_functions/distance_functions_benchmark.cpp b/searchlib/src/tests/tensor/distance_functions/distance_functions_benchmark.cpp index 7717f91cd9d..14a0adac651 100644 --- a/searchlib/src/tests/tensor/distance_functions/distance_functions_benchmark.cpp +++ b/searchlib/src/tests/tensor/distance_functions/distance_functions_benchmark.cpp @@ -16,8 +16,8 @@ using search::attribute::DistanceMetric; size_t npos = std::string::npos; -double run_calc(size_t iterations, TypedCells b, const BoundDistanceFunction & df) __attribute_noinline__; -double run_calc_with_limit(size_t iterations, TypedCells b, const BoundDistanceFunction & df) __attribute_noinline__; +double run_calc(size_t iterations, TypedCells b, const BoundDistanceFunction & df) __attribute__((noinline)); +double run_calc_with_limit(size_t iterations, TypedCells b, const BoundDistanceFunction & df) __attribute__((noinline)); double run_calc(size_t iterations, TypedCells b, const BoundDistanceFunction & df) { @@ -53,7 +53,7 @@ run_calc_with_limit(size_t iterations, TypedCells b, const BoundDistanceFunction } template<typename T> -void benchmark(size_t iterations, size_t elems) __attribute_noinline__; +void benchmark(size_t iterations, size_t elems) __attribute__((noinline)); template<typename T> void benchmark(size_t iterations, size_t elems, const DistanceFunctionFactory & df) { diff --git a/searchlib/src/vespa/searchlib/tensor/temporary_vector_store.cpp b/searchlib/src/vespa/searchlib/tensor/temporary_vector_store.cpp index a48614bd9ef..097ea67cc9e 100644 --- a/searchlib/src/vespa/searchlib/tensor/temporary_vector_store.cpp +++ b/searchlib/src/vespa/searchlib/tensor/temporary_vector_store.cpp @@ -15,7 +15,7 @@ namespace { template<typename FromType, typename ToType> ConstArrayRef<ToType> -convert_cells(ArrayRef<ToType> space, TypedCells cells) noexcept __attribute_noinline__; +convert_cells(ArrayRef<ToType> space, TypedCells cells) noexcept __attribute__((noinline)); template<typename FromType, typename ToType> ConstArrayRef<ToType> |