mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 21:38:01 +03:00
bf_t: Remove <limits> lib dependency
This commit is contained in:
parent
33fe0fdd6b
commit
d2f3ada312
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
template<typename T, uint N>
|
template<typename T, uint N>
|
||||||
struct bf_base
|
struct bf_base
|
||||||
|
@ -17,7 +16,7 @@ struct bf_base
|
||||||
static constexpr uint bitsize = N;
|
static constexpr uint bitsize = N;
|
||||||
|
|
||||||
// All ones mask
|
// All ones mask
|
||||||
static constexpr utype mask1 = std::numeric_limits<utype>::max();
|
static constexpr utype mask1 = static_cast<utype>(UINTMAX_MAX);
|
||||||
|
|
||||||
// Value mask
|
// Value mask
|
||||||
static constexpr utype vmask = mask1 >> (bitmax - bitsize);
|
static constexpr utype vmask = mask1 >> (bitmax - bitsize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue