Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove BitUtils Usage in YGNode #36988

Closed
wants to merge 1 commit into from

Conversation

NickGerleman
Copy link
Contributor

Summary: BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets). Replace usage with a bitfield struct.

Differential Revision: D45133645

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Apr 19, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Apr 19, 2023
Summary:
X-link: facebook/react-native#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets). Replace usage with a bitfield struct.

Differential Revision: D45133645

fbshipit-source-id: 7e4e8c78220165e4e9678c4b0b1f8f26a6c74d2a
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets). Replace usage with a bitfield struct.

Changelog: [Internal]

Differential Revision: D45133645

fbshipit-source-id: d69ec8829e5cb6763da7a3a65f1bbbf1a145f20f
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets). Replace usage with a bitfield struct.

Changelog: [Internal]

Differential Revision: https://internalfb.com/D45133645

fbshipit-source-id: a0a86e0277d0f4f43d58b8bc3fa96fc7cf61aad0
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets). Replace usage with a bitfield struct.

Changelog: [Internal]

Differential Revision: D45133645

fbshipit-source-id: ce282d670277b514c0876d0d91372b9a22471601
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Differential Revision: D45133645

fbshipit-source-id: 4b6e4f83fe226304d33cb06cef03a77dd4bd455e
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Differential Revision: D45133645

fbshipit-source-id: e8efdedccf0ce662e6917ced8cefec8fabffc387
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Differential Revision: D45133645

fbshipit-source-id: 8b6cca5cb0d5eebf17ce280000835228f7f1064f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Differential Revision: D45133645

fbshipit-source-id: d69da5ab0a5896309d33be1206a4c6756ac79c43
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Differential Revision: D45133645

fbshipit-source-id: ec836ead6055df7b048d4258f9a0a3c5ab311fe8
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133645

fbshipit-source-id: 55ed806393ffeda5e27ca9a9856315620bd718aa
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Apr 20, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets). Replace usage with a bitfield struct.

Changelog: [Internal]

Differential Revision: https://internalfb.com/D45133645

fbshipit-source-id: 56bd37c7e507f9172437a88772d142edede52f9d
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133645

fbshipit-source-id: f2df7821305214ad3abb38727af6cd9e9d8515b4
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45133645

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,620,586 +45
android hermes armeabi-v7a 7,933,723 +55
android hermes x86 9,107,078 +20
android hermes x86_64 8,961,997 +59
android jsc arm64-v8a 9,186,907 +34
android jsc armeabi-v7a 8,377,684 +53
android jsc x86 9,244,997 +11
android jsc x86_64 9,503,609 +65

Base commit: 65f5cd7
Branch: main

facebook-github-bot pushed a commit to facebook/yoga that referenced this pull request Apr 21, 2023
Summary:
Pull Request resolved: #1250

X-link: facebook/react-native#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133645

fbshipit-source-id: aa1430df5e2fb71ed9d2a5f5b1a35429b71c7069
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 21, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4ae77c0.

facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Apr 21, 2023
Summary:
X-link: facebook/yoga#1250

X-link: facebook/react-native#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133645

fbshipit-source-id: aa1430df5e2fb71ed9d2a5f5b1a35429b71c7069
jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133645

fbshipit-source-id: aa1430df5e2fb71ed9d2a5f5b1a35429b71c7069
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
X-link: facebook/yoga#1250

Pull Request resolved: facebook#36988

BitUtils functions in Yoga are like bit fields, with more steps, and more error prone (you need to work with explicit offsets which can be tricky for anything variable length). Replace usage with a bitfield struct. Eventually I'd like to remove the BitUtils functions in general.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45133645

fbshipit-source-id: aa1430df5e2fb71ed9d2a5f5b1a35429b71c7069
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants