mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
10 lines
No EOL
185 B
C++
10 lines
No EOL
185 B
C++
#pragma once
|
|
|
|
namespace dxvk::bit {
|
|
|
|
template<typename T>
|
|
inline T extract(T value, uint32_t fst, uint32_t lst) {
|
|
return (value >> fst) & ~(~T(0) << (lst - fst + 1));
|
|
}
|
|
|
|
} |