` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 November 21, 2024, 6:54 am
This article has been viewed 35220 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: