WIP: FloatOptional GCC build fix and more constexpr #1411

Closed
NickGerleman wants to merge 22 commits from NickGerleman-fix-gcc-floatoptional into main
3 changed files with 18 additions and 6 deletions
Showing only changes of commit 55fb80d96b - Show all commits

View File

@@ -78,4 +78,12 @@ inline bool operator<=(FloatOptional lhs, FloatOptional rhs) {
return lhs < rhs || lhs == rhs; return lhs < rhs || lhs == rhs;
} }
inline FloatOptional maxOrDefined(FloatOptional op1, FloatOptional op2) {
return maxOrDefined(op1.unwrap(), op2.unwrap());
}
inline bool inexactEquals(const FloatOptional a, const FloatOptional b) {
return inexactEquals(a.unwrap(), b.unwrap());
}
} // namespace facebook::yoga } // namespace facebook::yoga