Login
`
Templates, Tools and Utilities
|
||
![]() |
![]() |
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
Par2: Test for a bit value 2004-07-05 -- Randy Goodhew Here is an extremely effecient way to test for a single bit:
x# = BSHIFT(BSHIFT(bits,31 - pos),-31)
where:
bits is a LONG
pos is a LONG that indicates the desired bit (numbered 0 to 31)
Today is March 31, 2025, 12:02 pm This article has been viewed 35288 times.
|
|