-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve large buffer crc32c performance on Arm [2/3]
Summary: Apply Folly changes to 3rd-party imported code and prepare for integration. Conditionalizs build on appropriate compiler environment; remove implicit inversion; change function signature to match existing Folly conventions. Add a helper function, compiled with basic ISA support, to detect at runtime whether this code is safe to use. Reviewed By: skrueger Differential Revision: D59321461 fbshipit-source-id: 8ae9226d769810a7366e2f81c857fcfcb08fafed
- Loading branch information
1 parent
7b48184
commit e7499ed
Showing
5 changed files
with
121 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
#include <cstddef> | ||
#include <cstdint> | ||
|
||
namespace folly::detail { | ||
uint32_t neon_crc32c_v3s4x2e_v2(const uint8_t* buf, size_t len, uint32_t crc0); | ||
bool has_neon_crc32c_v3s4x2e_v2(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
#include <cstddef> | ||
#include <cstdint> | ||
|
||
namespace folly::detail { | ||
uint32_t neon_eor3_crc32c_v8s2x4_s3(const uint8_t* buf, size_t len, uint32_t crc0); | ||
bool has_neon_eor3_crc32c_v8s2x4_s3(); | ||
} |