Jump to content

Les mask


Recommended Posts

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??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...