Optimized memory alignment
Summary: It's not much, but still 4 bytes saved here by moving the ```bool```s together. (on compilers where ```bool``` is a single byte) Closes https://github.com/facebook/yoga/pull/319 Reviewed By: gkassabli, passy Differential Revision: D4383686 Pulled By: emilsjolander fbshipit-source-id: 9a48eccbb69382850c016aa6ee730526704a15f2
This commit is contained in:
committed by
Facebook Github Bot
parent
956df20c64
commit
d0aeabb8f0
@@ -94,16 +94,18 @@ typedef struct YGNode {
|
|||||||
YGStyle style;
|
YGStyle style;
|
||||||
YGLayout layout;
|
YGLayout layout;
|
||||||
uint32_t lineIndex;
|
uint32_t lineIndex;
|
||||||
bool hasNewLayout;
|
|
||||||
YGNodeRef parent;
|
YGNodeRef parent;
|
||||||
YGNodeListRef children;
|
YGNodeListRef children;
|
||||||
bool isDirty;
|
|
||||||
|
|
||||||
struct YGNode *nextChild;
|
struct YGNode *nextChild;
|
||||||
|
|
||||||
YGMeasureFunc measure;
|
YGMeasureFunc measure;
|
||||||
YGPrintFunc print;
|
YGPrintFunc print;
|
||||||
void *context;
|
void *context;
|
||||||
|
|
||||||
|
bool isDirty;
|
||||||
|
bool hasNewLayout;
|
||||||
} YGNode;
|
} YGNode;
|
||||||
|
|
||||||
#define YG_UNDEFINED_VALUES \
|
#define YG_UNDEFINED_VALUES \
|
||||||
|
Reference in New Issue
Block a user