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

Function add_bits

cpp/fory/util/float16_test.cc:731–733  ·  view source on GitHub ↗

Helper: convert two float16 bit patterns through an operation and return bits.

Source from the content-addressed store, hash-verified

729// Helper: convert two float16 bit patterns through an operation and return
730// bits.
731static uint16_t add_bits(uint16_t a, uint16_t b) {
732 return float16_t::add(H(a), H(b)).to_bits();
733}
734static uint16_t sub_bits(uint16_t a, uint16_t b) {
735 return float16_t::sub(H(a), H(b)).to_bits();
736}

Callers 1

TESTFunction · 0.85

Calls 2

HFunction · 0.85
to_bitsMethod · 0.45

Tested by

no test coverage detected