Changeset ede528 in git


Ignore:
Timestamp:
Sep 10, 1997, 5:46:21 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
Children:
49a0f469454e4930fefe879ebd3811bd145c92ae
Parents:
b761b9bd513a1376d632a6fdebb102ed20df5d4a
Message:
	* int_rat.cc (InternalRational::sign): call to mpz_cmp_si()
	  replaced by call to mpz_sgn()


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

Legend:

Unmodified
Added
Removed
  • factory/int_rat.cc

    rb761b9 rede528  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_rat.cc,v 1.4 1997-09-09 09:03:37 schmidt Exp $ */
     2/* $Id: int_rat.cc,v 1.5 1997-09-10 15:46:21 schmidt Exp $ */
    33
    44#include <config.h>
     
    725725// }
    726726
    727 int InternalRational::sign ( ) const
    728 {
    729     return mpz_cmp_si( &_num, 0 );
    730 }
     727//{{{ int InternalRational::sign () const
     728// docu: see CanonicalForm::sign()
     729int
     730InternalRational::sign () const
     731{
     732    return mpz_sgn( &_num );
     733}
     734//}}}
Note: See TracChangeset for help on using the changeset viewer.