-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(byteswap): adding signed versions, feature flags
Also refactoring away from specialized approach and paving way for (currently unimplemented) xor version #77
- Loading branch information
Showing
3 changed files
with
71 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
#define FEATURE_ESTD_BYTESWAP_AUTO 0 // Prefer STD, then GCC (if available), then XOR | ||
#define FEATURE_ESTD_BYTESWAP_STD 1 // Force STD mode, ignoring compiler indication of availability | ||
#define FEATURE_ESTD_BYTESWAP_GCC 2 // Force GCC mode, ignoring compiler indication of availability | ||
#define FEATURE_ESTD_BYTESWAP_XOR 3 // Force XOR (manual) mode, not implemented at this time | ||
|
||
#ifndef FEATURE_ESTD_BYTESWAP_MODE | ||
#define FEATURE_ESTD_BYTESWAP_MODE FEATURE_ESTD_BYTESWAP_AUTO | ||
#endif |
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