@@ -1787,7 +1787,7 @@ type PSAPI_WORKING_SET_EX_BLOCK uintptr
1787
1787
// Valid returns the validity of this page.
1788
1788
// If this bit is 1, the subsequent members are valid; otherwise they should be ignored.
1789
1789
func (b PSAPI_WORKING_SET_EX_BLOCK ) Valid () bool {
1790
- return (b & 1 ) == 1
1790
+ return (b & 1 ) != 0
1791
1791
}
1792
1792
1793
1793
// ShareCount is the number of processes that share this page. The maximum value of this member is 7.
@@ -1804,7 +1804,7 @@ func (b PSAPI_WORKING_SET_EX_BLOCK) Win32Protection() uint64 {
1804
1804
// Shared returns the shared status of this page.
1805
1805
// If this bit is 1, the page can be shared.
1806
1806
func (b PSAPI_WORKING_SET_EX_BLOCK ) Shared () bool {
1807
- return (b & (1 << 15 )) == 1
1807
+ return (b & (1 << 15 )) != 0
1808
1808
}
1809
1809
1810
1810
// Node is the NUMA node. The maximum value of this member is 63.
@@ -1815,19 +1815,19 @@ func (b PSAPI_WORKING_SET_EX_BLOCK) Node() uint64 {
1815
1815
// Locked returns the locked status of this page.
1816
1816
// If this bit is 1, the virtual page is locked in physical memory.
1817
1817
func (b PSAPI_WORKING_SET_EX_BLOCK ) Locked () bool {
1818
- return (b & (1 << 22 )) == 1
1818
+ return (b & (1 << 22 )) != 0
1819
1819
}
1820
1820
1821
1821
// LargePage returns the large page status of this page.
1822
1822
// If this bit is 1, the page is a large page.
1823
1823
func (b PSAPI_WORKING_SET_EX_BLOCK ) LargePage () bool {
1824
- return (b & (1 << 23 )) == 1
1824
+ return (b & (1 << 23 )) != 0
1825
1825
}
1826
1826
1827
1827
// Bad returns the bad status of this page.
1828
1828
// If this bit is 1, the page is has been reported as bad.
1829
1829
func (b PSAPI_WORKING_SET_EX_BLOCK ) Bad () bool {
1830
- return (b & (1 << 31 )) == 1
1830
+ return (b & (1 << 31 )) != 0
1831
1831
}
1832
1832
1833
1833
// intField extracts an integer field in the PSAPI_WORKING_SET_EX_BLOCK union.
0 commit comments