MCPcopy Create free account
hub / github.com/apache/fory / min

Method min

cpp/fory/util/float16.h:173–175  ·  view source on GitHub ↗

fmin/fmax propagate NaN the same way as IEEE minNum/maxNum.

Source from the content-addressed store, hash-verified

171 }
172 // fmin/fmax propagate NaN the same way as IEEE minNum/maxNum.
173 [[nodiscard]] static float16_t min(float16_t a, float16_t b) noexcept {
174 return from_float(std::fmin(a.to_float(), b.to_float()));
175 }
176 [[nodiscard]] static float16_t max(float16_t a, float16_t b) noexcept {
177 return from_float(std::fmax(a.to_float(), b.to_float()));
178 }

Callers

nothing calls this directly

Calls 1

to_floatMethod · 0.45

Tested by

no test coverage detected