Changeset 0479a86 in git for Singular/syz1.cc


Ignore:
Timestamp:
Jun 17, 1997, 4:30:03 PM (27 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5b9fef10a16120b7be2820e1de075f0275b6db9a
Parents:
cfbf231fad8c8e23d9f72e45ec49470c83068282
Message:
 use of long long in sySetHighdeg


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

Legend:

Unmodified
Added
Removed
  • Singular/syz1.cc

    rcfbf231 r0479a86  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: syz1.cc,v 1.8 1997-06-09 12:21:29 Singular Exp $ */
     4/* $Id: syz1.cc,v 1.9 1997-06-17 14:30:03 pohl Exp $ */
    55/*
    66* ABSTRACT: resolutions
     
    19531953}
    19541954
     1955static void sySetHighdeg()
     1956  {
     1957    long long t=1, h_d=1;
     1958    long long h_n=1+pVariables;
     1959    while ((t=((t*h_n)/h_d))<INT_MAX)
     1960    {
     1961      h_d++;
     1962      h_n++;
     1963    }
     1964    h_d--;
     1965    highdeg = h_d;
     1966    //Print("max deg=%d\n",highdeg);
     1967  }
     1968
    19551969/*2
    19561970* implementation of LaScala's algorithm
     
    20102024    }
    20112025  }
    2012   {
    2013     highdeg=1;
    2014     long long t=1;
    2015     long long h_n=1+pVariables;
    2016     while ((t=(((long long)t*(long long)h_n)/(long long)highdeg))<INT_MAX)
    2017     {
    2018       highdeg++;
    2019       h_n++;
    2020     }
    2021     highdeg--;
    2022     //Print("max deg=%d\n",highdeg);
    2023   } 
     2026  sySetHighdeg();
    20242027  binomials = (int*)Alloc(pVariables*(highdeg+1)*sizeof(int));
    20252028  syBinomSet();
     
    22302233    }
    22312234  }
    2232   {
    2233     highdeg=1;
    2234     long long t=1;
    2235     long long h_n=1+pVariables;
    2236     while ((t=(((long long)t*(long long)h_n)/(long long)highdeg))<INT_MAX)
    2237     {
    2238       highdeg++;
    2239       h_n++;
    2240     }
    2241     highdeg--;
    2242     //Print("max deg=%d\n",highdeg);
    2243   } 
     2235  sySetHighdeg();
    22442236  binomials = (int*)Alloc(pVariables*(highdeg+1)*sizeof(int));
    22452237  syBinomSet();
Note: See TracChangeset for help on using the changeset viewer.