Changeset 929cf9 in git
- Timestamp:
- Oct 10, 1997, 12:57:48 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 22743edef32154f9a0bbfd10c5075928daa14da4
- Parents:
- 143cbf291e94548c9b354db86ff04f8fbf4fb123
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/int_pp.cc
r143cbf2 r929cf9 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_pp.cc,v 1. 5 1997-09-10 15:42:36schmidt Exp $ */2 /* $Id: int_pp.cc,v 1.6 1997-10-10 10:57:48 schmidt Exp $ */ 3 3 4 4 #include <config.h> … … 269 269 } 270 270 271 InternalCF* InternalPrimePower::modulosame( InternalCF * c ) 271 InternalCF * 272 InternalPrimePower::modulosame ( InternalCF * ) 272 273 { 273 274 if ( deleteObject() ) delete this; … … 275 276 } 276 277 277 InternalCF* InternalPrimePower::modsame( InternalCF * c ) 278 InternalCF * 279 InternalPrimePower::modsame ( InternalCF * ) 278 280 { 279 281 if ( deleteObject() ) delete this; … … 281 283 } 282 284 283 void InternalPrimePower::divremsame( InternalCF * c, InternalCF*& quot, InternalCF*& rem ) 285 void 286 InternalPrimePower::divremsame ( InternalCF * c, InternalCF * & quot, InternalCF * & rem ) 284 287 { 285 288 if ( c == this ) { … … 302 305 } 303 306 304 bool InternalPrimePower::divremsamet( InternalCF* c, InternalCF*& quot, InternalCF*& rem ) 307 bool 308 InternalPrimePower::divremsamet ( InternalCF * c, InternalCF * & quot, InternalCF * & rem ) 305 309 { 306 310 divremsame( c, quot, rem ); … … 308 312 } 309 313 310 int InternalPrimePower::comparecoeff( InternalCF* c ) 314 int 315 InternalPrimePower::comparecoeff ( InternalCF * ) 311 316 { 312 317 ASSERT( 0, "this function should never be called" ); … … 314 319 } 315 320 316 InternalCF* InternalPrimePower::addcoeff( InternalCF* c ) 317 { 318 ASSERT( 0, "this function should never be called" ); 319 return this; 320 } 321 322 InternalCF* InternalPrimePower::subcoeff( InternalCF* c, bool negate ) 323 { 324 ASSERT( 0, "this function should never be called" ); 325 return this; 326 } 327 328 InternalCF* InternalPrimePower::mulcoeff( InternalCF* c ) 329 { 330 ASSERT( 0, "this function should never be called" ); 331 return this; 332 } 333 334 InternalCF* InternalPrimePower::dividecoeff( InternalCF* c, bool invert ) 335 { 336 ASSERT( 0, "this function should never be called" ); 337 return this; 338 } 339 340 InternalCF* InternalPrimePower::divcoeff( InternalCF* c, bool invert ) 341 { 342 ASSERT( 0, "this function should never be called" ); 343 return this; 344 } 345 346 InternalCF* InternalPrimePower::modcoeff( InternalCF* c, bool invert ) 347 { 348 ASSERT( 0, "this function should never be called" ); 349 return this; 350 } 351 352 InternalCF* InternalPrimePower::modulocoeff( InternalCF* c, bool invert ) 353 { 354 ASSERT( 0, "this function should never be called" ); 355 return this; 356 } 357 358 void InternalPrimePower::divremcoeff( InternalCF* c, InternalCF*& quot, InternalCF*& rem, bool invert ) 359 { 360 ASSERT( 0, "this function should never be called" ); 361 } 362 363 bool InternalPrimePower::divremcoefft( InternalCF* c, InternalCF*& quot, InternalCF*& rem, bool invert ) 321 InternalCF * 322 InternalPrimePower::addcoeff ( InternalCF * ) 323 { 324 ASSERT( 0, "this function should never be called" ); 325 return this; 326 } 327 328 InternalCF * 329 InternalPrimePower::subcoeff ( InternalCF *, bool ) 330 { 331 ASSERT( 0, "this function should never be called" ); 332 return this; 333 } 334 335 InternalCF * 336 InternalPrimePower::mulcoeff ( InternalCF * ) 337 { 338 ASSERT( 0, "this function should never be called" ); 339 return this; 340 } 341 342 InternalCF * 343 InternalPrimePower::dividecoeff ( InternalCF *, bool ) 344 { 345 ASSERT( 0, "this function should never be called" ); 346 return this; 347 } 348 349 InternalCF * 350 InternalPrimePower::divcoeff ( InternalCF *, bool ) 351 { 352 ASSERT( 0, "this function should never be called" ); 353 return this; 354 } 355 356 InternalCF * 357 InternalPrimePower::modcoeff ( InternalCF *, bool ) 358 { 359 ASSERT( 0, "this function should never be called" ); 360 return this; 361 } 362 363 InternalCF * 364 InternalPrimePower::modulocoeff ( InternalCF *, bool ) 365 { 366 ASSERT( 0, "this function should never be called" ); 367 return this; 368 } 369 370 void 371 InternalPrimePower::divremcoeff ( InternalCF *, InternalCF * &, InternalCF * &, bool ) 372 { 373 ASSERT( 0, "this function should never be called" ); 374 } 375 376 bool 377 InternalPrimePower::divremcoefft ( InternalCF *, InternalCF * &, InternalCF * &, bool ) 364 378 { 365 379 ASSERT( 0, "this function should never be called" ); … … 367 381 } 368 382 369 int InternalPrimePower::intval() const 383 int 384 InternalPrimePower::intval () const 370 385 { 371 386 return (int)mpz_get_si( &thempi ); 372 387 } 373 388 374 int InternalPrimePower::intmod( int p ) const 389 int 390 InternalPrimePower::intmod( int p ) const 375 391 { 376 392 return (int)mpz_mmod_ui( 0, &thempi, (unsigned long)p );
Note: See TracChangeset
for help on using the changeset viewer.