Skip to content

Commit 65c7db5

Browse files
change priority class mask-out formula
1 parent d6677fd commit 65c7db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/spdk/priority_class.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class mask PRIORITY_CLASS_MASK to get the priority class as an integer
77
*/
88
#define PRIORITY_CLASS_BITS_POS (64 - NBITS_PRIORITY_CLASS)
99
#define PRIORITY_CLASS_MASK (0xFFFFFFFFFFFFFFFF << PRIORITY_CLASS_BITS_POS)
10-
#define MASK_OUT_PRIORITY_CLASS (~PRIORITY_CLASS_MASK)
10+
#define MASK_OUT_PRIORITY_CLASS (0xFFFFFFFFFFFFFFFF >> NBITS_PRIORITY_CLASS)
1111
#define MIN_PRIORITY_CLASS 0
1212
#define MAX_PRIORITY_CLASS ((1 << NBITS_PRIORITY_CLASS) - 1)
1313

0 commit comments

Comments
 (0)