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

Method floor

cpp/fory/util/float16.h:184–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 static_cast<uint16_t>((a.bits & 0x7FFFu) | (b.bits & 0x8000u)));
183 }
184 [[nodiscard]] static float16_t floor(float16_t a) noexcept {
185 return from_float(std::floor(a.to_float()));
186 }
187 [[nodiscard]] static float16_t ceil(float16_t a) noexcept {
188 return from_float(std::ceil(a.to_float()));
189 }

Callers 5

writeVarUInt64NumberMethod · 0.80
decodeLowerSpecialMethod · 0.80
encodeGenericMethod · 0.80
benchmarkFunction · 0.80

Calls 1

to_floatMethod · 0.45

Tested by

no test coverage detected