Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bitand on more than 32 bits
Message
De
11/02/2003 03:53:34
 
 
À
11/02/2003 03:29:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00751377
Message ID:
00751808
Vues:
31
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform