Changeset d07137 in git for factory/int_pp.cc


Ignore:
Timestamp:
Oct 15, 2003, 7:19:41 PM (21 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ecd23349865d588d280037e46df36f300536d5a2
Parents:
2499bf918092002632ace751f0bbae7bd5a2cccb
Message:
*hannes: faster conversions


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

Legend:

Unmodified
Added
Removed
  • factory/int_pp.cc

    r2499bf rd07137  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_pp.cc,v 1.9 1998-06-26 16:14:26 schmidt Exp $ */
     2/* $Id: int_pp.cc,v 1.10 2003-10-15 17:19:41 Singular Exp $ */
    33
    44#include <config.h>
     
    3838InternalPrimePower::InternalPrimePower( const MP_INT & mpi ) : thempi( mpi ) {}
    3939
    40 InternalPrimePower::InternalPrimePower( const char * str )
    41 {
    42     mpz_init_set_str( &thempi, str, 10 );
     40InternalPrimePower::InternalPrimePower( const char * str, const int base )
     41{
     42    mpz_init_set_str( &thempi, str, base );
    4343    if ( mpz_cmp_si( &thempi, 0 ) < 0 ) {
    4444        mpz_neg( &thempi, &thempi );
Note: See TracChangeset for help on using the changeset viewer.