mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
vapours: fix MASKL, MASK2L to match Armv8 ARM (inclusive bit range)
This commit is contained in:
parent
dc1404061c
commit
4f33afe0ee
1 changed files with 2 additions and 2 deletions
|
@ -69,12 +69,12 @@ typedef u32 Result; ///< Function error code result type.
|
||||||
|
|
||||||
/// Creates a bitmask for bit range extraction.
|
/// Creates a bitmask for bit range extraction.
|
||||||
#ifndef MASK2
|
#ifndef MASK2
|
||||||
#define MASK2(a,b) (MASK(a) & ~MASK(b))
|
#define MASK2(a,b) (MASK((a) + 1) & ~MASK(b))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Creates a bitmask for bit range extraction (long).
|
/// Creates a bitmask for bit range extraction (long).
|
||||||
#ifndef MASK2L
|
#ifndef MASK2L
|
||||||
#define MASK2L(a,b) (MASKL(a) & ~MASKL(b))
|
#define MASK2L(a,b) (MASKL((a) + 1) & ~MASKL(b))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Marks a function as not returning, for the purposes of compiler optimization.
|
/// Marks a function as not returning, for the purposes of compiler optimization.
|
||||||
|
|
Loading…
Reference in a new issue