Files
2026-05-03 13:05:55 +04:00

18 lines
387 B
C

// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2026 0xKSor
#pragma once
#include <Types.h>
static inline UInt32 BytesSwap32(UInt32 value) {
return __builtin_bswap32(value);
}
static inline UInt64 BytesSwap64(UInt64 value) {
return __builtin_bswap64(value);
}
static inline UInt64 Merge32To64(UInt32 low, UInt32 high) {
return ((UInt64)high << 32) | low;
}