Skip to content

cherry-pick: Remove leveldb::port::kLittleEndian. #40

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

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

fanquake
Copy link
Member

Clang 10 includes the optimizations described in https://bugs.llvm.org/show_bug.cgi?id=41761. This means that the platform-independent implementations of {Decode,Encode}Fixed{32,64}() compile to one instruction on the most recent Clang and GCC.

PiperOrigin-RevId: 306330166

Cherry-picked from upstream: google@201f522.
Currently part of bitcoin/bitcoin#29852.

Clang 10 includes the optimizations described in
https://bugs.llvm.org/show_bug.cgi?id=41761. This means that the
platform-independent implementations of {Decode,Encode}Fixed{32,64}()
compile to one instruction on the most recent Clang and GCC.

PiperOrigin-RevId: 306330166
@maflcko
Copy link

maflcko commented Apr 15, 2024

Would it be an alternative to sync all commits with upstream?

Copy link
Member

@dergoegge dergoegge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 2e3c013

@maflcko
Copy link

maflcko commented Jan 15, 2025

cherry-pick ACK 2e3c013, but no strong opinion

This is just a code-cleanup patch, but I wonder if they are worth it, given that other code changes won't be pulled in unless there is a full upstream pull.

@fanquake fanquake merged commit 5966981 into bitcoin-core:bitcoin-fork Jan 15, 2025
@fanquake fanquake deleted the cherry_pick_endian branch January 15, 2025 14:22
fanquake added a commit to fanquake/bitcoin that referenced this pull request Jan 16, 2025
04b5790928 Merge bitcoin-core/leveldb-subtree#46: Fix invalid pointer arithmetic in Hash (bitcoin#1222)
59669817c5 Merge bitcoin-core/leveldb-subtree#40: cherry-pick: Remove leveldb::port::kLittleEndian.
73013d1a37 Merge bitcoin-core/leveldb-subtree#45: [jumbo] Add begin()/end() to Slice.
a8844b23ab Fix invalid pointer arithmetic in Hash (bitcoin#1222)
be4dfc94b3 [jumbo] Add begin()/end() to Slice.
2e3c0131d3 Remove leveldb::port::kLittleEndian.

git-subtree-dir: src/leveldb
git-subtree-split: 04b57909285c7335c1908d53bcde9b90fe0439be
fanquake added a commit to bitcoin/bitcoin that referenced this pull request Jan 21, 2025
910a11f build: remove LEVELDB_IS_BIG_ENDIAN (fanquake)
d336b7a Squashed 'src/leveldb/' changes from 688561cba8..04b5790928 (fanquake)

Pull request description:

  Includes:
  * bitcoin-core/leveldb-subtree#40 (used in #29852)
  * bitcoin-core/leveldb-subtree#45
  * bitcoin-core/leveldb-subtree#46

ACKs for top commit:
  kevkevinpal:
    Concept ACK [910a11f](910a11f)
  l0rinc:
    ACK 910a11f
  hebasto:
    ACK 910a11f, I've performed a subtree update locally and got the same changes.
  theuni:
    utACK 910a11f

Tree-SHA512: c5a2224c67d3fd598bc682589b805c324abf91003032a85764766048030285f56154779f29d3f0b3673c8f7f497ae62de5fc6b95ef0b022c873750053c7d27d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants