Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bitand on more than 32 bits
Message
From
11/02/2003 03:53:34
 
 
To
11/02/2003 03:29:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00751377
Message ID:
00751808
Views:
25
Hi,

>>Just tested (you never know with computers): bitand(2^32, 2^32) returns 0 since we are exceeding 32 bits (2^31 ..... 2^0)
<<

Yea, you're right - realised my example was only 24 bit straight after posting. So how about, for x and y:

nresult = BITAND(int(x/0xffffffff),int(y/0xffffffff))* 0xffffffff ;
+ BITAND(Mod(x,0xffffffff),mod(y,0xffffffff))


Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform