Changeset d5e8f1 in git


Ignore:
Timestamp:
Mar 22, 2000, 5:33:45 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
01cd520e3f85920b3d678626bea4f870041a3037
Parents:
607cfdb23678e0c010fe9a6d3ccf2ee5f3d62736
Message:
*hannes: cosmetics


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

Legend:

Unmodified
Added
Removed
  • Singular/longrat.cc

    r607cfd rd5e8f1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longrat.cc,v 1.25 1999-11-15 17:20:20 obachman Exp $ */
     4/* $Id: longrat.cc,v 1.26 2000-03-22 16:33:45 Singular Exp $ */
    55/*
    66* ABSTRACT: computation with long rational numbers (Hubert Grassmann)
     
    700700        }
    701701        mpz_add(&u->z,&b->z,&x);
     702        mpz_clear(&x);
    702703        nlGmpSimple(&u->z);
    703         mpz_clear(&x);
    704704        if (mpz_cmp_ui(&u->z,(long)0)==0)
    705705        {
     
    11911191  if (SR_HDL(a) & SR_HDL(b) & SR_INT)
    11921192  {
     1193    if (a==INT_TO_SR(0)) return INT_TO_SR(0);
    11931194    if (b==INT_TO_SR(0)) return INT_TO_SR(0);
    11941195    int r=(SR_HDL(a)-1)*(SR_HDL(b)>>1);
     
    13521353    return INT_TO_SR(0);
    13531354  }
     1355  if (a==INT_TO_SR(0))
     1356    return INT_TO_SR(0);
    13541357  number u;
    13551358  if (SR_HDL(a) & SR_HDL(b) & SR_INT)
     
    14101413    return INT_TO_SR(0);
    14111414  }
     1415  if (a==INT_TO_SR(0))
     1416    return INT_TO_SR(0);
    14121417  number u;
    14131418  if (SR_HDL(a) & SR_HDL(b) & SR_INT)
     
    15361541  }
    15371542  if (a==INT_TO_SR(0))
    1538       return INT_TO_SR(0);
     1543    return INT_TO_SR(0);
    15391544  number u;
    15401545  if (SR_HDL(a) & SR_HDL(b) & SR_INT)
Note: See TracChangeset for help on using the changeset viewer.