Changeset c62f38 in git


Ignore:
Timestamp:
Sep 10, 1997, 5:42:11 PM (27 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
05ac04bd3fd4c6b3288c88b5738ffcaafc564ad9
Parents:
b24b3181881121ebbc5ff6ff35f083abece0c729
Message:
	* int_int.cc (InternalInteger::sign): call to mpz_cmp_si()
	  replaced by call to mpz_sgn()


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

Legend:

Unmodified
Added
Removed
  • factory/int_int.cc

    rb24b318 rc62f38  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_int.cc,v 1.5 1997-07-16 10:18:46 schmidt Exp $ */
     2/* $Id: int_int.cc,v 1.6 1997-09-10 15:42:11 schmidt Exp $ */
    33
    44#include <config.h>
     
    758758}
    759759
    760 int InternalInteger::sign ( ) const
    761 {
    762     return mpz_cmp_si( &thempi, 0 );
    763 }
     760//{{{ int InternalInteger::sign () const
     761// docu: see CanonicalForm::sign()
     762int
     763InternalInteger::sign () const
     764{
     765    return mpz_sgn( &thempi );
     766}
     767//}}}
    764768
    765769InternalCF*
Note: See TracChangeset for help on using the changeset viewer.