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

Method sqrt

cpp/fory/util/float16.h:169–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 // ---- Optional math (computed in float32, rounded back) ----
168
169 [[nodiscard]] static float16_t sqrt(float16_t a) noexcept {
170 return from_float(std::sqrt(a.to_float()));
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()));

Callers

nothing calls this directly

Calls 1

to_floatMethod · 0.45

Tested by

no test coverage detected