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

Method max

cpp/fory/util/float16.h:176–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }
179 // copysign: take magnitude from |a|, sign from b — exact, bit operation.
180 [[nodiscard]] static float16_t copysign(float16_t a, float16_t b) noexcept {
181 return from_bits(

Callers

nothing calls this directly

Calls 1

to_floatMethod · 0.45

Tested by

no test coverage detected