Changeset bf6475e in git for factory/int_pp.cc


Ignore:
Timestamp:
Dec 12, 1997, 10:21:16 AM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
398652325b3eb99d2fcc790b849c3455979f33a0
Parents:
56f184514833117b524b2901e59c43bd79a85eda
Message:
	* int_pp.cc (comparesame): assertion added


git-svn-id: file:///usr/local/Singular/svn/trunk@967 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/int_pp.cc

    r56f1845 rbf6475e  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_pp.cc,v 1.6 1997-10-10 10:57:48 schmidt Exp $ */
     2/* $Id: int_pp.cc,v 1.7 1997-12-12 09:21:16 schmidt Exp $ */
    33
    44#include <config.h>
     
    1010#include "canonicalform.h"
    1111#include "cf_factory.h"
     12#include "imm.h"
    1213
    1314MP_INT InternalPrimePower::primepow;
     
    170171}
    171172
    172 
    173 int InternalPrimePower::comparesame( InternalCF * c )
    174 {
    175     return mpz_cmp( &thempi, &MPI( c ) );
    176 }
    177173
    178174InternalCF* InternalPrimePower::addsame( InternalCF * c )
     
    312308}
    313309
     310//{{{ int InternalPrimePower::comparesame, comparecoeff ( InternalCF * c )
     311// docu: see CanonicalForm::operator <(), CanonicalForm::operator ==()
     312int
     313InternalPrimePower::comparesame ( InternalCF * c )
     314{
     315    ASSERT( ! ::is_imm( c ) && c->levelcoeff() == PrimePowerDomain, "incompatible base coefficients" );
     316    return mpz_cmp( &thempi, &MPI( c ) );
     317}
     318
    314319int
    315320InternalPrimePower::comparecoeff ( InternalCF * )
    316321{
    317     ASSERT( 0, "this function should never be called" );
     322    ASSERT1( 0, "not implemented for class %s", this->classname() );
    318323    return 0;
    319324}
     325//}}}
    320326
    321327InternalCF *
Note: See TracChangeset for help on using the changeset viewer.