Changeset bf6475e in git for factory/int_pp.cc
- Timestamp:
- Dec 12, 1997, 10:21:16 AM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 398652325b3eb99d2fcc790b849c3455979f33a0
- Parents:
- 56f184514833117b524b2901e59c43bd79a85eda
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/int_pp.cc
r56f1845 rbf6475e 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_pp.cc,v 1. 6 1997-10-10 10:57:48schmidt Exp $ */2 /* $Id: int_pp.cc,v 1.7 1997-12-12 09:21:16 schmidt Exp $ */ 3 3 4 4 #include <config.h> … … 10 10 #include "canonicalform.h" 11 11 #include "cf_factory.h" 12 #include "imm.h" 12 13 13 14 MP_INT InternalPrimePower::primepow; … … 170 171 } 171 172 172 173 int InternalPrimePower::comparesame( InternalCF * c )174 {175 return mpz_cmp( &thempi, &MPI( c ) );176 }177 173 178 174 InternalCF* InternalPrimePower::addsame( InternalCF * c ) … … 312 308 } 313 309 310 //{{{ int InternalPrimePower::comparesame, comparecoeff ( InternalCF * c ) 311 // docu: see CanonicalForm::operator <(), CanonicalForm::operator ==() 312 int 313 InternalPrimePower::comparesame ( InternalCF * c ) 314 { 315 ASSERT( ! ::is_imm( c ) && c->levelcoeff() == PrimePowerDomain, "incompatible base coefficients" ); 316 return mpz_cmp( &thempi, &MPI( c ) ); 317 } 318 314 319 int 315 320 InternalPrimePower::comparecoeff ( InternalCF * ) 316 321 { 317 ASSERT ( 0, "this function should never be called");322 ASSERT1( 0, "not implemented for class %s", this->classname() ); 318 323 return 0; 319 324 } 325 //}}} 320 326 321 327 InternalCF *
Note: See TracChangeset
for help on using the changeset viewer.