HomePhabricator

[backport#11138] Compat: Simplify bswap_16 implementation

Description

[backport#11138] Compat: Simplify bswap_16 implementation

Summary:
e40fa98 Simplify bswap_16 implementation (danra)

Pull request description:

Simplify bswap_16 implementation on platforms which don't already have it defined.
This has no effect on the generated assembly; it just simplifies the source code.

Backport of Core PR11138

Test Plan:

ninja all check check-functional

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D7790

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Aug 28 2017, 07:41
majcostaCommitted on Oct 7 2020, 14:52
majcostaPushed on Oct 7 2020, 14:52
Reviewer
Restricted Project
Differential Revision
D7790: [backport#11138] Compat: Simplify bswap_16 implementation
Parents
rABC73474a4ace67: [backport#10842] Fix incorrect Doxygen tag (@ince → @since). Doxygen parameter…
Branches
Unknown
Tags
Unknown