summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-05-20 20:50:43 +0200
committerGitHub <noreply@github.com>2024-05-20 20:50:43 +0200
commit4d5fff964685d8df2a48977604b6bd5e73fbbf60 (patch)
tree3e5d2312b0fd38fb6db799bf51d65b9dd4dc101d
parent54df6d75fbffd3f7d875fde2b2580647cb949ae8 (diff)
parent35dcb957aee28ea57b03fe9dfacb791f47120ae5 (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…
-rw-r--r--searchlib/src/tests/tensor/distance_functions/distance_functions_benchmark.cpp6
-rw-r--r--searchlib/src/vespa/searchlib/tensor/temporary_vector_store.cpp2
-rw-r--r--vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp2
3 files changed, 5 insertions, 5 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>
diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp b/vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp
index fbcf3dff526..236d2a135a5 100644
--- a/vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp
+++ b/vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp
@@ -123,7 +123,7 @@ convert_bfloat16_to_float(const uint16_t *src, float *dest, size_t sz) noexcept
template<typename ACCUM = uint32_t>
ACCUM
-multiplyAddT(const int8_t *a, const int8_t *b, size_t sz) noexcept __attribute_noinline__;
+multiplyAddT(const int8_t *a, const int8_t *b, size_t sz) noexcept __attribute__((noinline));
template<typename ACCUM>
ACCUM