Diff for /rpl/src/indicateurs.c between versions 1.20 and 1.55

version 1.20, 2011/06/21 07:45:22 version 1.55, 2016/03/01 22:12:28
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.0.prerelease.1    RPL/2 (R) version 4.1.25
   Copyright (C) 1989-2011 Dr. BERTRAND Joël    Copyright (C) 1989-2016 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
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.20  
changed lines
  Added in v.1.55


CVSweb interface <joel.bertrand@systella.fr>