Diff for /rpl/src/instructions_i2.c between versions 1.48 and 1.49

version 1.48, 2013/02/27 17:11:42 version 1.49, 2013/03/20 17:11:45
Line 44  instruction_idn(struct_processus *s_etat Line 44  instruction_idn(struct_processus *s_etat
     logical1                            argument_nom;      logical1                            argument_nom;
     logical1                            variable_partagee;      logical1                            variable_partagee;
   
     unsigned long                       i;      integer8                            i;
     unsigned long                       j;      integer8                            j;
   
     (*s_etat_processus).erreur_execution = d_ex;      (*s_etat_processus).erreur_execution = d_ex;
   
Line 223  instruction_idn(struct_processus *s_etat Line 223  instruction_idn(struct_processus *s_etat
         }          }
   
         if (((*((struct_matrice *) (*s_objet_resultat).objet)).tableau =          if (((*((struct_matrice *) (*s_objet_resultat).objet)).tableau =
                 malloc((*((struct_matrice *) (*s_objet_resultat).objet))                  malloc(((size_t) (*((struct_matrice *) (*s_objet_resultat)
                 .nombre_lignes * sizeof(integer8 *))) == NULL)                  .objet)).nombre_lignes) * sizeof(integer8 *))) == NULL)
         {          {
             if (variable_partagee == d_vrai)              if (variable_partagee == d_vrai)
             {              {
Line 244  instruction_idn(struct_processus *s_etat Line 244  instruction_idn(struct_processus *s_etat
                 .nombre_lignes; i++)                  .nombre_lignes; i++)
         {          {
             if ((((integer8 **) (*((struct_matrice *) (*s_objet_resultat)              if ((((integer8 **) (*((struct_matrice *) (*s_objet_resultat)
                     .objet)).tableau)[i] = malloc((*((struct_matrice *)                      .objet)).tableau)[i] = malloc(((size_t)
                     (*s_objet_resultat).objet)).nombre_colonnes *                      (*((struct_matrice *) (*s_objet_resultat).objet))
                     sizeof(integer8))) == NULL)                      .nombre_colonnes) * sizeof(integer8))) == NULL)
             {              {
                 if (variable_partagee == d_vrai)                  if (variable_partagee == d_vrai)
                 {                  {
Line 359  instruction_ifft(struct_processus *s_eta Line 359  instruction_ifft(struct_processus *s_eta
   
     logical1                    presence_longueur_fft;      logical1                    presence_longueur_fft;
   
     unsigned long               i;      integer8                    i;
     unsigned long               j;      integer8                    j;
     unsigned long               k;      integer8                    k;
     unsigned long               longueur_fft;      integer8                    longueur_fft;
   
     (*s_etat_processus).erreur_execution = d_ex;      (*s_etat_processus).erreur_execution = d_ex;
   
Line 468  instruction_ifft(struct_processus *s_eta Line 468  instruction_ifft(struct_processus *s_eta
     {      {
         if (presence_longueur_fft == d_faux)          if (presence_longueur_fft == d_faux)
         {          {
             longueur_fft = pow(2, (integer4) ceil(log((real8)              longueur_fft = (integer8) pow(2, ceil(log((real8)
                     (*((struct_vecteur *)                      (*((struct_vecteur *)
                     (*s_objet_argument).objet)).taille) / log((real8) 2)));                      (*s_objet_argument).objet)).taille) / log((real8) 2)));
   
             if ((longueur_fft / ((real8) (*((struct_vecteur *)              if ((((real8) longueur_fft) / ((real8) (*((struct_vecteur *)
                     (*s_objet_argument).objet)).taille)) == 2)                      (*s_objet_argument).objet)).taille)) == 2)
             {              {
                 longueur_fft /= 2;                  longueur_fft /= 2;
             }              }
         }          }
   
         if ((matrice_f77 = malloc(longueur_fft *          if ((matrice_f77 = malloc(((size_t) longueur_fft) *
                 sizeof(struct_complexe16))) == NULL)                  sizeof(struct_complexe16))) == NULL)
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
Line 529  instruction_ifft(struct_processus *s_eta Line 529  instruction_ifft(struct_processus *s_eta
         }          }
   
         nombre_lignes = 1;          nombre_lignes = 1;
         nombre_colonnes = longueur_fft;          nombre_colonnes = (integer4) longueur_fft;
         inverse = -1;          inverse = -1;
   
         dft(matrice_f77, &nombre_lignes, &nombre_colonnes, &inverse, &erreur);          dft(matrice_f77, &nombre_lignes, &nombre_colonnes, &inverse, &erreur);
Line 565  instruction_ifft(struct_processus *s_eta Line 565  instruction_ifft(struct_processus *s_eta
     {      {
         if (presence_longueur_fft == d_faux)          if (presence_longueur_fft == d_faux)
         {          {
             longueur_fft = pow(2, (integer4) ceil(log((real8)              longueur_fft = (integer8) pow(2, ceil(log((real8)
                     (*((struct_matrice *)                      (*((struct_matrice *) (*s_objet_argument).objet))
                     (*s_objet_argument).objet)).nombre_colonnes) /                      .nombre_colonnes) / log((real8) 2)));
                     log((real8) 2)));  
   
             if ((longueur_fft / ((real8) (*((struct_matrice *)              if ((((real8) longueur_fft) / ((real8) (*((struct_matrice *)
                     (*s_objet_argument).objet)).nombre_colonnes)) == 2)                      (*s_objet_argument).objet)).nombre_colonnes)) == 2)
             {              {
                 longueur_fft /= 2;                  longueur_fft /= 2;
             }              }
         }          }
   
         if ((matrice_f77 = malloc(longueur_fft *          if ((matrice_f77 = malloc(((size_t) longueur_fft) *
                 (*((struct_matrice *) (*s_objet_argument).objet))                  ((size_t) (*((struct_matrice *) (*s_objet_argument).objet))
                 .nombre_lignes * sizeof(struct_complexe16))) == NULL)                  .nombre_lignes) * sizeof(struct_complexe16))) == NULL)
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
             return;              return;
Line 655  instruction_ifft(struct_processus *s_eta Line 654  instruction_ifft(struct_processus *s_eta
             }              }
         }          }
   
         nombre_lignes = (*((struct_matrice *) (*s_objet_argument).objet))          nombre_lignes = (integer4) (*((struct_matrice *)
                 .nombre_lignes;                  (*s_objet_argument).objet)).nombre_lignes;
         nombre_colonnes = longueur_fft;          nombre_colonnes = (integer4) longueur_fft;
         inverse = -1;          inverse = -1;
   
         dft(matrice_f77, &nombre_lignes, &nombre_colonnes, &inverse, &erreur);          dft(matrice_f77, &nombre_lignes, &nombre_colonnes, &inverse, &erreur);
Line 684  instruction_ifft(struct_processus *s_eta Line 683  instruction_ifft(struct_processus *s_eta
                 longueur_fft;                  longueur_fft;
   
         if (((*((struct_matrice *) (*s_objet_resultat).objet)).tableau =          if (((*((struct_matrice *) (*s_objet_resultat).objet)).tableau =
                 malloc((*((struct_matrice *) (*s_objet_resultat).objet))                  malloc(((size_t) (*((struct_matrice *) (*s_objet_resultat)
                 .nombre_lignes * sizeof(struct_complexe16 *))) == NULL)                  .objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL)
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
             return;              return;
Line 696  instruction_ifft(struct_processus *s_eta Line 695  instruction_ifft(struct_processus *s_eta
         {          {
             if ((((struct_complexe16 **) (*((struct_matrice *)              if ((((struct_complexe16 **) (*((struct_matrice *)
                     (*s_objet_resultat).objet)).tableau)[i] =                      (*s_objet_resultat).objet)).tableau)[i] =
                     malloc((*((struct_matrice *)                      malloc(((size_t) (*((struct_matrice *)
                     (*s_objet_resultat).objet)).nombre_colonnes *                      (*s_objet_resultat).objet)).nombre_colonnes) *
                     sizeof(struct_complexe16))) == NULL)                      sizeof(struct_complexe16))) == NULL)
             {              {
                 (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;                  (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
Line 771  instruction_input(struct_processus *s_et Line 770  instruction_input(struct_processus *s_et
     unsigned char               *tampon;      unsigned char               *tampon;
     unsigned char               *tampon2;      unsigned char               *tampon2;
   
     unsigned long               i;      integer8                    i;
   
     (*s_etat_processus).erreur_execution = d_ex;      (*s_etat_processus).erreur_execution = d_ex;
   
Line 851  instruction_input(struct_processus *s_et Line 850  instruction_input(struct_processus *s_et
         ptr_l++;          ptr_l++;
     }      }
   
     if ((tampon2 = malloc((strlen(tampon) + 1 + i) *      if ((tampon2 = malloc((strlen(tampon) + 1 + ((size_t) i)) *
             sizeof(unsigned char))) == NULL)              sizeof(unsigned char))) == NULL)
     {      {
         (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;          (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
Line 1203  instruction_int(struct_processus *s_etat Line 1202  instruction_int(struct_processus *s_etat
   
         if ((*s_objet_argument_1).type == INT)          if ((*s_objet_argument_1).type == INT)
         {          {
             precision = (*((integer8 *) (*s_objet_argument_1).objet));              precision = (real8) (*((integer8 *) (*s_objet_argument_1).objet));
         }          }
         else if ((*s_objet_argument_1).type == REL)          else if ((*s_objet_argument_1).type == REL)
         {          {

Removed from v.1.48  
changed lines
  Added in v.1.49


CVSweb interface <joel.bertrand@systella.fr>