Diff for /rpl/src/indicateurs.c between versions 1.40 and 1.41

version 1.40, 2013/02/27 17:11:40 version 1.41, 2013/03/20 17:11:44
Line 51  sf(struct_processus *s_etat_processus, u Line 51  sf(struct_processus *s_etat_processus, u
     indice_bloc = indice_drapeau / taille_bloc;      indice_bloc = indice_drapeau / taille_bloc;
     indice_bit = indice_drapeau % taille_bloc;      indice_bit = indice_drapeau % taille_bloc;
   
     masque = ((t_8_bits) 1) << (taille_bloc - indice_bit - 1);      masque = (t_8_bits) (((t_8_bits) 1) << (taille_bloc - indice_bit - 1));
   
     (*s_etat_processus).drapeaux_etat[indice_bloc] |= masque;      (*s_etat_processus).drapeaux_etat[indice_bloc] |= masque;
 }  }
Line 85  cf(struct_processus *s_etat_processus, u Line 85  cf(struct_processus *s_etat_processus, u
     indice_bloc = indice_drapeau / taille_bloc;      indice_bloc = indice_drapeau / taille_bloc;
     indice_bit = indice_drapeau % taille_bloc;      indice_bit = indice_drapeau % taille_bloc;
   
     masque = ~(((t_8_bits) 1) << (taille_bloc - indice_bit - 1));      masque = (t_8_bits) (~(((t_8_bits) 1) << (taille_bloc - indice_bit - 1)));
   
     (*s_etat_processus).drapeaux_etat[indice_bloc] &= masque;      (*s_etat_processus).drapeaux_etat[indice_bloc] &= masque;
 }  }
Line 119  test_cfsf(struct_processus *s_etat_proce Line 119  test_cfsf(struct_processus *s_etat_proce
     indice_bloc = indice_drapeau / taille_bloc;      indice_bloc = indice_drapeau / taille_bloc;
     indice_bit = indice_drapeau % taille_bloc;      indice_bit = indice_drapeau % taille_bloc;
   
     masque = ((t_8_bits) 1) << (taille_bloc - indice_bit - 1);      masque = (t_8_bits) (((t_8_bits) 1) << (taille_bloc - indice_bit - 1));
   
     return((((*s_etat_processus).drapeaux_etat[indice_bloc] & masque) != 0)      return((((*s_etat_processus).drapeaux_etat[indice_bloc] & masque) != 0)
             ? d_vrai : d_faux);              ? d_vrai : d_faux);

Removed from v.1.40  
changed lines
  Added in v.1.41


CVSweb interface <joel.bertrand@systella.fr>