Refactor interface of microkernel parameter initialization
Pass pointer to the parameters structure to enable polymorphic extensions
PiperOrigin-RevId: 374147239
diff --git a/bench/f16-dwconv.cc b/bench/f16-dwconv.cc
index e8649d5..8c27d83 100644
--- a/bench/f16-dwconv.cc
+++ b/bench/f16-dwconv.cc
@@ -123,8 +123,8 @@
std::vector<uint16_t> c(c_elements * num_buffers);
std::fill(c.begin(), c.end(), std::nanf(""));
- xnn_f16_minmax_params params =
- xnn_init_f16_minmax_params(-std::numeric_limits<uint16_t>::infinity(), +std::numeric_limits<uint16_t>::infinity());
+ xnn_f16_minmax_params params;
+ xnn_init_f16_minmax_params(¶ms, UINT16_C(0xFC00) /* -inf */, UINT16_C(0x7C00) /* inf */);
size_t buffer_index = 0;
for (auto _ : state) {