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

version 1.7, 2010/04/21 13:45:45 version 1.55, 2016/03/01 22:12:28
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.15    RPL/2 (R) version 4.1.25
   Copyright (C) 1989-2010 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 20 Line 20
 */  */
   
   
 #include "rpl.conv.h"  #include "rpl-conv.h"
   
   
 /*  /*
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.7  
changed lines
  Added in v.1.55


CVSweb interface <joel.bertrand@systella.fr>