Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BitTest'ing numbers larger then 32 bits
Message
From
01/01/2021 08:42:12
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
01/01/2021 08:35:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01677684
Message ID:
01677689
Views:
75
>>Happy New Year all,
>>
>>I have run into a wall. I have a argument that is a set of bit flags. Currently, I have hit the 32 bit integer limit using the VFP bit functions of 32 bit. Now I am looking for a means to extend this to more flags (bits) without having to do a large rewrite in my system. The question is, is there a known UDF function that mimics the BITTEST (and possible other bit-wise functions) that can deal with numbers larger then 32 bits?
>
>The only thing that comes to mind is to somehow keep this larger integer as a binary string, and then bittest the asc() of the relevant byte in it.

The question was for an existing lib doing this. ;)

Happy new year anyway.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform