MCPcopy Create free account
hub / github.com/apache/fory / operator==

Method operator==

cpp/fory/util/float16_test.cc:1091–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089struct Float16Vector {
1090 std::vector<float16_t> values;
1091 bool operator==(const Float16Vector &o) const {
1092 if (values.size() != o.values.size())
1093 return false;
1094 for (size_t i = 0; i < values.size(); ++i) {
1095 if (values[i].to_bits() != o.values[i].to_bits())
1096 return false;
1097 }
1098 return true;
1099 }
1100 FORY_STRUCT(Float16Vector, values);
1101};
1102

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
to_bitsMethod · 0.45

Tested by

no test coverage detected