falswrx Posted November 21, 2004 Share Posted November 21, 2004 Quel est le resultat d'un mask unsigned double avec un bit Voici le code que j'ai fait: for(i=NB_BIT;i>=0;i--){ MSB en premier val_bit = LECTURE; //Lecture change a tout les passage val_double |= val_bit; val_double = val_double << i; } 0000 0000 0000 0000 0000 0000 0000 0000 OU XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXX1 = 0000 0000 0000 0000 0000 0000 0000 0001 ????? Est-ce correct de faire un mask d'un unsigned double avec bit?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.