Changeset fc11f45 in git
- Timestamp:
- May 2, 2006, 2:21:07 PM (17 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- de73940e6ece1d89e3c387c97621c053abb007b2
- Parents:
- 8fe650a84b0ab31d578930ed415d47f61208c1ad
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/NTLconvert.cc
r8fe650 rfc11f45 1 /* $Id: NTLconvert.cc,v 1.1 6 2006-05-02 11:35:15Singular Exp $ */1 /* $Id: NTLconvert.cc,v 1.17 2006-05-02 12:21:07 Singular Exp $ */ 2 2 #include <config.h> 3 4 #ifdef HAVE_SINGULAR 5 #ifndef OM_NDEBUG 6 #define OM_NDEBUG 7 #endif 8 #endif 3 9 4 10 #include "cf_gmp.h" -
factory/int_int.h
r8fe650 rfc11f45 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_int.h,v 1.1 1 2003-10-15 17:19:41Singular Exp $ */2 /* $Id: int_int.h,v 1.12 2006-05-02 12:21:07 Singular Exp $ */ 3 3 4 4 #ifndef INCL_INT_INT_H … … 17 17 #include "gmpext.h" 18 18 19 #ifdef HAVE_SINGULAR 20 #ifndef OM_NDEBUG 21 #define OM_NDEBUG 22 #endif 23 #endif 19 24 20 25 #ifdef HAVE_OMALLOC … … 55 60 InternalInteger( const InternalCF& ) 56 61 { 57 62 ASSERT( 0, "ups there is something wrong in your code" ); 58 63 } 59 64 InternalInteger( const int i ); … … 113 118 114 119 int ilog2(); 115 120 116 121 friend class InternalRational; 117 122 #ifdef SINGULAR … … 145 150 146 151 if ( mpz_is_imm( &thempi ) ) { 147 148 149 150 } else 151 152 InternalCF * result = int2imm( mpz_get_si( &thempi ) ); 153 delete this; 154 return result; 155 } else 156 return this; 152 157 } 153 158 … … 158 163 159 164 if ( mpz_is_imm( &thempi ) ) { 160 161 162 163 } else 164 165 InternalCF * result = int2imm( mpz_get_ui( &thempi ) ); 166 delete this; 167 return result; 168 } else 169 return this; 165 170 } 166 171 //}}} … … 185 190 { 186 191 if ( mpz_is_imm( &aMpi ) ) { 187 188 189 190 } else 191 192 InternalCF * result = int2imm( mpz_get_si( &aMpi ) ); 193 mpz_clear( &aMpi ); 194 return result; 195 } else 196 return new InternalInteger( aMpi ); 192 197 } 193 198 … … 196 201 { 197 202 if ( mpz_is_imm( &aMpi ) ) { 198 199 200 201 } else 202 203 InternalCF * result = int2imm( mpz_get_ui( &aMpi ) ); 204 mpz_clear( &aMpi ); 205 return result; 206 } else 207 return new InternalInteger( aMpi ); 203 208 } 204 209 //}}} -
factory/int_poly.h
r8fe650 rfc11f45 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_poly.h,v 1. 7 2000-09-04 13:31:31 obachmanExp $ */2 /* $Id: int_poly.h,v 1.8 2006-05-02 12:21:07 Singular Exp $ */ 3 3 4 4 #ifndef INCL_INT_POLY_H … … 15 15 #include "variable.h" 16 16 #include "canonicalform.h" 17 18 #ifdef HAVE_SINGULAR 19 #ifndef OM_NDEBUG 20 #define OM_NDEBUG 21 #endif 22 #endif 17 23 18 24 #ifdef HAVE_OMALLOC
Note: See TracChangeset
for help on using the changeset viewer.