Changeset f1c465f in git
- Timestamp:
- Jun 21, 2010, 7:46:24 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- abca39190db801f0125cf1a47ca64dcd18437478
- Parents:
- 4d1ae5af2805ed797a6a992f88a4bb83fbc625f8
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-06-21 19:46:24+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:15+01:00
- Location:
- coeffs
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/coeffs.h
-
Property
mode
changed from
100755
to100644
-
Property
mode
changed from
-
coeffs/config.h.in
r4d1ae5 rf1c465f 1 #include <auxiliary.h> 2 1 3 // #define assume(x) ((void) 0) 2 4 #define memcpy4 memcpy -
coeffs/gnumpfl.cc
r4d1ae5 rf1c465f 406 406 } 407 407 408 static BOOLEAN ngfCoeffsEqual(const coeffs r, n_coeffType n, int)408 static BOOLEAN ngfCoeffsEqual(const coeffs r, n_coeffType n, void*) 409 409 { 410 410 assume( getCoeffType(r) == ID ); -
coeffs/gnumpfl.h
r4d1ae5 rf1c465f 17 17 18 18 /// test, whether r is an instance of nInitCoeffs(n, parameter) */ 19 static BOOLEAN ngfCoeffsEqual(const coeffs r, n_coeffType n, int parameter);19 static BOOLEAN ngfCoeffsEqual(const coeffs r, n_coeffType n, void*); 20 20 21 21 -
coeffs/longrat.h
r4d1ae5 rf1c465f 69 69 int nlInt(number &n, const coeffs r); 70 70 number nlBigInt(number &n); 71 71 72 #ifdef HAVE_RINGS 72 73 void nlGMP(number &i, number n, const coeffs r); 73 74 #endif 75 74 76 BOOLEAN nlGreaterZero(number za, const coeffs r); 75 77 number nlInvers(number a, const coeffs r); -
coeffs/numbers.cc
-
Property
mode
changed from
100755
to100644
-
Property
mode
changed from
-
coeffs/rintegers.cc
r4d1ae5 rf1c465f 6 6 * ABSTRACT: numbers modulo n 7 7 */ 8 #include "config.h" 9 10 #ifdef HAVE_RINGS 8 11 9 12 #include <string.h> … … 19 22 #include <si_gmp.h> 20 23 21 #ifdef HAVE_RINGS22 24 23 25 omBin gmp_nrz_bin = omGetSpecBin(sizeof(mpz_t)); -
coeffs/rmodulo2m.cc
-
Property
mode
changed from
100755
to100644
r4d1ae5 rf1c465f 7 7 */ 8 8 9 #include <string.h>10 9 #include "config.h" 11 10 #include <auxiliary.h> 12 11 13 12 #ifdef HAVE_RINGS 13 14 14 #include <mylimits.h> 15 15 #include "coeffs.h" … … 21 21 #include "rmodulo2m.h" 22 22 #include "si_gmp.h" 23 24 #include <string.h> 23 25 24 26 int nr2mExp; -
Property
mode
changed from
-
coeffs/rmodulo2m.h
-
Property
mode
changed from
100755
to100644
r4d1ae5 rf1c465f 10 10 #ifdef HAVE_RINGS 11 11 #include "coeffs.h" 12 #include "rintegers.h" 13 14 #ifndef NATNUMBER 15 #define NATNUMBER unsigned long 16 #endif 17 18 19 void nr2mInitChar (coeffs r, void*); 12 20 13 21 extern int nr2mExp; … … 15 23 bit pattern '11..1' of length m */ 16 24 17 void nr2mInitChar (coeffs r, void*);25 number nr2mCopy (number a, const coeffs r); 18 26 BOOLEAN nr2mGreaterZero (number k, const coeffs r); 19 27 number nr2mMult (number a, number b, const coeffs r); -
Property
mode
changed from
-
coeffs/rmodulon.cc
-
Property
mode
changed from
100755
to100644
r4d1ae5 rf1c465f 7 7 */ 8 8 9 #include <string.h>10 9 #include "config.h" 11 10 #include <auxiliary.h> 12 11 13 12 #ifdef HAVE_RINGS 13 14 14 #include <mylimits.h> 15 15 #include "coeffs.h" … … 21 21 #include "rmodulon.h" 22 22 #include "si_gmp.h" 23 24 #include <string.h> 23 25 24 26 extern omBin gmp_nrz_bin; … … 446 448 int_number erg = (int_number) omAllocBin(gmp_nrz_bin); 447 449 mpz_init(erg); 448 nlGMP(from, (number) erg, dst);449 mpz_mod(erg, erg, dst->nrnModul);450 nlGMP(from, (number) erg, src); 451 mpz_mod(erg, erg, src->nrnModul); 450 452 return (number) erg; 451 453 } -
Property
mode
changed from
-
coeffs/rmodulon.h
-
Property
mode
changed from
100755
to100644
-
Property
mode
changed from
-
coeffs/test.cc
-
Property
mode
changed from
100755
to100644
r4d1ae5 rf1c465f 11 11 #include <gnumpc.h> 12 12 #include <shortfl.h> 13 14 13 15 #include <rmodulon.h> 14 16 #include <rmodulo2m.h> … … 40 42 { 41 43 42 cout << "Testing coeffs: [" << type << "]: " << endl; 44 cout << endl << "----------------------- Testing coeffs: [" << type << 45 "]: -----------------------" << endl; 43 46 44 47 const coeffs r = nInitChar( type, NULL ); … … 84 87 // assume( r->cfDelete == nrDelete ); // No? 85 88 } 89 #ifdef HAVE_RINGS 86 90 else if( type == n_Z2m ) 87 91 { … … 98 102 assume( r->cfDelete == nrnDelete ); 99 103 } 104 #endif 100 105 else 101 106 { … … 135 140 c ++; 136 141 142 #ifdef HAVE_RINGS 137 143 type = nRegister( n_Zn, nrnInitChar); assume( type == n_Zn ); 138 144 if( Test(type) ) 139 145 c ++; 146 140 147 141 148 type = nRegister( n_Z2m, nr2mInitChar); assume( type == n_Z2m ); 142 149 if( Test(type) ) 143 150 c ++; 144 151 #endif 152 145 153 return c; 146 154 -
Property
mode
changed from
Note: See TracChangeset
for help on using the changeset viewer.