Changeset a86d4c in git


Ignore:
Timestamp:
May 2, 2000, 4:55:41 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
fdd95cae3fd09e17105ef495d37154b1f2dd43fe
Parents:
a269e40905ee7ffce7c3e136ac547cb20459084f
Message:
*hannes: minor optimization:nlMult


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

Legend:

Unmodified
Added
Removed
  • Singular/longrat.cc

    ra269e4 ra86d4c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longrat.cc,v 1.27 2000-03-22 16:34:41 Singular Exp $ */
     4/* $Id: longrat.cc,v 1.28 2000-05-02 14:55:41 Singular Exp $ */
    55/*
    66* ABSTRACT: computation with long rational numbers (Hubert Grassmann)
     
    11891189  nlTest(b);
    11901190#endif
     1191  if (a==INT_TO_SR(0)) return INT_TO_SR(0);
     1192  if (b==INT_TO_SR(0)) return INT_TO_SR(0);
    11911193  if (SR_HDL(a) & SR_HDL(b) & SR_INT)
    11921194  {
    1193     if (a==INT_TO_SR(0)) return INT_TO_SR(0);
    1194     if (b==INT_TO_SR(0)) return INT_TO_SR(0);
    11951195    int r=(SR_HDL(a)-1)*(SR_HDL(b)>>1);
    11961196    if ((r/(SR_HDL(b)>>1))==(SR_HDL(a)-1))
     
    12271227  else
    12281228  {
    1229     if ((a==INT_TO_SR(0))
    1230     ||(b==INT_TO_SR(0)))
    1231       return INT_TO_SR(0);
    12321229    u=(number)AllocSizeOf(rnumber);
    12331230#if defined(LDEBUG) && ! defined(HAVE_ASO)
Note: See TracChangeset for help on using the changeset viewer.