Changeset 8b46459 in git


Ignore:
Timestamp:
Nov 25, 2011, 1:07:18 AM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
47b5d7aa0b4641c40dce245c8cdc8b3ecd0c8cfb
Parents:
a522916a7e6a9455b8b3b069cf64a8a507a5247f
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-25 01:07:18+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-25 14:03:06+01:00
Message:
MP_INT -> mpz_t

adaptation of libpolys/
Location:
libpolys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/longrat.cc

    ra52291 r8b46459  
    297297    if ( n->s == 3 )
    298298    {
    299       MP_INT dummy;
    300       mpz_init_set( &dummy,n->z );
     299      mpz_t dummy;
     300      mpz_init_set( dummy,n->z );
    301301      term = make_cf( dummy );
    302302    }
     
    304304    {
    305305      // assume s==0 or s==1
    306       MP_INT num, den;
     306      mpz_t num, den;
    307307      On(SW_RATIONAL);
    308       mpz_init_set( &num, n->z );
    309       mpz_init_set( &den, n->n );
     308      mpz_init_set( num, n->z );
     309      mpz_init_set( den, n->n );
    310310      term = make_cf( num, den, ( n->s != 1 ));
    311311    }
  • libpolys/polys/clapconv.cc

    ra52291 r8b46459  
    2727#define TRANSEXT_PRIVATES
    2828#include <polys/ext_fields/transext.h>
    29 
    30 typedef __mpz_struct lint;
    3129
    3230void out_cf(char *s1,const CanonicalForm &f,char *s2);
     
    220218        if ( p_GetCoeff( p, r->cf->extRing )->s == 3 )
    221219        {
    222           lint dummy;
    223           mpz_init_set( &dummy, (p_GetCoeff( p,r->cf->extRing )->z) );
     220          mpz_t dummy;
     221          mpz_init_set( dummy, (p_GetCoeff( p,r->cf->extRing )->z) );
    224222          term = make_cf( dummy );
    225223        }
     
    227225        {
    228226          // assume s==0 or s==1
    229           lint num, den;
     227          mpz_t num, den;
    230228          On(SW_RATIONAL);
    231           mpz_init_set( &num, (p_GetCoeff( p, r->cf->extRing )->z) );
    232           mpz_init_set( &den, (p_GetCoeff( p, r->cf->extRing )->n) );
     229          mpz_init_set( num, (p_GetCoeff( p, r->cf->extRing )->z) );
     230          mpz_init_set( den, (p_GetCoeff( p, r->cf->extRing )->n) );
    233231          term = make_cf( num, den, ( p_GetCoeff( p, r->cf->extRing )->s != 1 ));
    234232        }
Note: See TracChangeset for help on using the changeset viewer.