17 lines
319 B
C
Raw Permalink Normal View History

2026-06-23 09:54:30 +08:00
#pragma once
namespace baselib
{
BASELIB_CPP_INTERFACE
{
namespace Algorithm
{
namespace detail
{
template<typename T>
static FORCE_INLINE constexpr T LogicalOrRShiftOp(T value, int shift) { return value | (value >> shift); }
}
}
}
}