Changeset b15cf85 in git
- Timestamp:
- Dec 12, 2012, 10:19:10 AM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 31d8dc47fbf92b0720715abf728f23bfb49965bb
- Parents:
- 14e634edb64741be0fbc04c9c89e8523cb0c1cc5
- git-author:
- Martin Lee <martinlee84@web.de>2012-12-12 10:19:10+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-12-12 15:53:48+01:00
- Location:
- factory
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/FLINTconvert.cc
r14e634 rb15cf85 57 57 { 58 58 mpz_t gmp_val; 59 gmp_val[0]= *getmpi(f.getval());59 f.mpzval(gmp_val); 60 60 fmpz_set_mpz (result, gmp_val); 61 61 mpz_clear (gmp_val); -
factory/NTLconvert.cc
r14e634 rb15cf85 670 670 char* stringtemp; 671 671 672 gmp_val[0]=*getmpi(f.getval());672 f.mpzval (gmp_val); 673 673 int l=mpz_sizeinbase(gmp_val,10)+2; 674 674 stringtemp=(char*)Alloc(l); -
factory/canonicalform.cc
r14e634 rb15cf85 68 68 else 69 69 return CanonicalForm( value->deepCopyObject() ); 70 } 71 72 void 73 CanonicalForm::mpzval(mpz_t val) const 74 { 75 ASSERT (!is_imm (value) && value->levelcoeff() == IntegerDomain, "non-immediate integer expected"); 76 getmpi (value, val); 70 77 } 71 78 //}}} -
factory/canonicalform.h
r14e634 rb15cf85 20 20 #include "cf_defs.h" 21 21 #include "variable.h" 22 #include <factory/cf_gmp.h> 22 23 #include <factory/templates/ftmpl_list.h> 23 24 #include <factory/templates/ftmpl_array.h> … … 80 81 CanonicalForm deepCopy() const; 81 82 83 void mpzval(mpz_t val) const; 82 84 // predicates 83 85 CF_NO_INLINE bool isOne() const; -
factory/cf_factory.cc
r14e634 rb15cf85 283 283 return dummy; 284 284 } 285 286 void getmpi ( InternalCF * value, mpz_t mpi) 287 { 288 ASSERT( ! is_imm( value ) && (value->levelcoeff() == IntegerDomain ), "illegal operation" ); 289 mpz_init_set (mpi, ((InternalInteger*)value)->thempi); 290 } 291 -
factory/cf_factory.h
r14e634 rb15cf85 35 35 36 36 mpz_ptr getmpi ( InternalCF * value, bool symmetric = true ); 37 void getmpi ( InternalCF * value, mpz_t mpi); 37 38 38 39 #endif /* ! INCL_CF_FACTORY_H */ -
factory/int_int.h
r14e634 rb15cf85 126 126 friend void gmp_denominator ( const CanonicalForm & f, mpz_ptr result ); 127 127 friend mpz_ptr getmpi ( InternalCF * value, bool symmetric ); 128 friend void getmpi ( InternalCF * value, mpz_t mpi); 128 129 }; 129 130
Note: See TracChangeset
for help on using the changeset viewer.