1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/util/util_bit.h

10 lines
174 B
C
Raw Normal View History

#pragma once
namespace dxvk::bit {
template<typename T, T Fst, T Lst>
constexpr T extract(T value) {
return (value >> Fst) & ~(~T(0) << (Lst - Fst + 1));
}
}