Store YGFloatOptional
in 32 bits
Summary: @public After removing `-ffast-math`, `NaN` can again be used to represent `undefined`. That allows us to remove the additional flag from `YGFloatOptional`, and reduce memory usage. Reviewed By: SidharthGuglani Differential Revision: D13439611 fbshipit-source-id: 93e90f72f0415edb228b4e7d145e1fae35cc6b43
This commit is contained in:
committed by
Facebook Github Bot
parent
da678ef971
commit
6bdd39d0ed
@@ -211,7 +211,7 @@ YGFloatOptional YGNode::relativePosition(
|
||||
|
||||
YGFloatOptional trailingPosition = getTrailingPosition(axis, axisSize);
|
||||
if (!trailingPosition.isUndefined()) {
|
||||
trailingPosition.setValue(-1 * trailingPosition.getValue());
|
||||
trailingPosition = YGFloatOptional{-1 * trailingPosition.getValue()};
|
||||
}
|
||||
return trailingPosition;
|
||||
}
|
||||
|
Reference in New Issue
Block a user