Changeset 0dcb70 in git for factory/int_int.cc


Ignore:
Timestamp:
Dec 17, 1997, 12:47:48 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4bb3d7938cf557a8f72b3e94924143ef0f7328f9
Parents:
a9d523a4bee24d3725b709b7d0422f804821db09
Message:
	* int_int.cc (sqrt, ilog2): assertion fixes


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

Legend:

Unmodified
Added
Removed
  • factory/int_int.cc

    ra9d523 r0dcb70  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_int.cc,v 1.9 1997-12-12 09:23:22 schmidt Exp $ */
     2/* $Id: int_int.cc,v 1.10 1997-12-17 11:47:48 schmidt Exp $ */
    33
    44#include <config.h>
     
    778778InternalInteger::sqrt ()
    779779{
    780     ASSERT( mpz_cmp_si( &thempi, 0 ) >= 0, "illegal instruction" );
     780    ASSERT( mpz_cmp_si( &thempi, 0 ) >= 0, "sqrt() argument < 0" );
    781781    MP_INT result;
    782782    mpz_init( &result );
     
    797797InternalInteger::ilog2 ()
    798798{
    799     ASSERT( mpz_cmp_si( &thempi, 0 ) > 0, "log arg <= 0" );
     799    ASSERT( mpz_cmp_si( &thempi, 0 ) > 0, "log() argument <= 0" );
    800800    return mpz_sizeinbase( &thempi, 2 ) - 1;
    801801}
Note: See TracChangeset for help on using the changeset viewer.