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

Method add

cpp/fory/util/float16.h:144–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 // ---- Arithmetic (computed in float32, rounded back to float16) ----
143
144 [[nodiscard]] static float16_t add(float16_t a, float16_t b) noexcept {
145 return from_float(a.to_float() + b.to_float());
146 }
147 [[nodiscard]] static float16_t sub(float16_t a, float16_t b) noexcept {
148 return from_float(a.to_float() - b.to_float());
149 }

Callers

nothing calls this directly

Calls 1

to_floatMethod · 0.45

Tested by

no test coverage detected