diff options
author | vvvv <[email protected]> | 2025-10-06 11:26:09 +0300 |
---|---|---|
committer | vvvv <[email protected]> | 2025-10-06 11:53:26 +0300 |
commit | 60f45e69a4d7dbc6131208e16c45faf35aa5a985 (patch) | |
tree | 4daa45b52c295a178c7620e4c93921465fcf7950 /yql/essentials/utils/swap_bytes.h | |
parent | 1bded1a65a7e6e9171418f3e1c691d390125b64e (diff) |
YQL-20086 utils
init
commit_hash:54feccd520ebd0ab23612bc0cb830914dff9d0e8
Diffstat (limited to 'yql/essentials/utils/swap_bytes.h')
-rw-r--r-- | yql/essentials/utils/swap_bytes.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yql/essentials/utils/swap_bytes.h b/yql/essentials/utils/swap_bytes.h index bf09bb321ab..90f12cab341 100644 --- a/yql/essentials/utils/swap_bytes.h +++ b/yql/essentials/utils/swap_bytes.h @@ -6,8 +6,7 @@ namespace NYql { // clang generates bswap for ui32 and ui64 template <typename TUnsigned> -Y_FORCE_INLINE -TUnsigned SwapBytes(TUnsigned value) { +Y_FORCE_INLINE TUnsigned SwapBytes(TUnsigned value) { TUnsigned result; auto* from = (ui8*)&value + sizeof(TUnsigned) - 1; auto* to = (ui8*)&result; @@ -17,4 +16,4 @@ TUnsigned SwapBytes(TUnsigned value) { return result; } -} +} // namespace NYql |