Changeset a29c12 in git for Singular/polys.cc


Ignore:
Timestamp:
Jan 27, 1998, 5:20:42 PM (26 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
69bba6723e83f4422080c051395b3190dea2224e
Parents:
4f2d37e6d452cc3714ecb45890c403707cc9aba0
Message:
or -> o_r (mac)


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

Legend:

Unmodified
Added
Removed
  • Singular/polys.cc

    r4f2d37e ra29c12  
    1 
    21/****************************************
    32*  Computer Algebra System SINGULAR     *
    43****************************************/
    5 /* $Id: polys.cc,v 1.14 1998-01-16 08:24:04 Singular Exp $ */
     4/* $Id: polys.cc,v 1.15 1998-01-27 16:20:42 pohl Exp $ */
    65
    76/*
     
    12871286/*2
    12881287* sets the comparision routine for monomials: for the first block
    1289 * of variables (or is the number of the ordering)
     1288* of variables (o_r is the number of the ordering)
    12901289*/
    12911290#ifdef COMP_FAST
    1292 static void SimpleChoose(int or, int comp_order, pCompProc *p)
     1291static void SimpleChoose(int o_r, int comp_order, pCompProc *p)
    12931292#else 
    1294 static void SimpleChoose(int or, pCompProc *p)
     1293static void SimpleChoose(int o_r, pCompProc *p)
    12951294#endif 
    12961295{
     
    13021301  else
    13031302  {
    1304     switch(or)
     1303    switch(o_r)
    13051304    {
    13061305        case ringorder_lp:
     
    13281327#ifdef PDEBUG
    13291328        default:
    1330           Werror("wrong internal ordering:%d at %s, l:%d\n",or,__FILE__,__LINE__);
    1331 #endif
    1332     }
    1333   }
    1334   if (or == ringorder_lp || or == ringorder_ls)
     1329          Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__);
     1330#endif
     1331    }
     1332  }
     1333  if (o_r == ringorder_lp || o_r == ringorder_ls)
    13351334  {
    13361335      pLexOrder=TRUE;
    13371336      pFDeg = pTotaldegree;
    13381337      pLDeg = ldeg1c;
    1339       if (or == ringorder_ls) pLexSgn = -1;
     1338      if (o_r == ringorder_ls) pLexSgn = -1;
    13401339  }
    13411340 
     
    13431342#endif
    13441343#ifdef COMP_FAST
    1345   switch(or)
     1344  switch(o_r)
    13461345  {
    13471346      case ringorder_dp:
     
    13531352        pSetVarIndicies_RevLex(pVariables);
    13541353        pLexSgn = -1;
    1355         if (comp_order == ringorder_C || or == ringorder_unspec)
     1354        if (comp_order == ringorder_C || o_r == ringorder_unspec)
    13561355        {
    13571356          if (pVariables1W == 1)
     
    14131412        break;
    14141413      default:
    1415         Werror("wrong internal ordering:%d at %s, l:%d\n",or,__FILE__,__LINE__);
     1414        Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__);
    14161415#endif
    14171416  }
    14181417 
    1419   if (or == ringorder_lp || or == ringorder_ls)
     1418  if (o_r == ringorder_lp || o_r == ringorder_ls)
    14201419  {
    14211420    pLexOrder=TRUE;
    14221421    pFDeg = pTotaldegree;
    14231422    pLDeg = ldeg1c;
    1424     if (or == ringorder_ls)
     1423    if (o_r == ringorder_ls)
    14251424      pSetVarIndicies_Lex(pVariables);
    14261425  }
     
    14351434/*2
    14361435* sets pSetm
    1437 * (according or = order of first block)
    1438 */
    1439 static void SetpSetm(int or, int ip)
    1440 {
    1441   switch(or)
     1436* (according o_r = order of first block)
     1437*/
     1438static void SetpSetm(int o_r, int ip)
     1439{
     1440  switch(o_r)
    14421441  {
    14431442    case ringorder_lp:
     
    14701469#ifdef TEST
    14711470    default:
    1472       Werror("wrong internal ordering:%d at %s, l:%d\n",or,__FILE__,__LINE__);
     1471      Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__);
    14731472#endif
    14741473  }
     
    14781477/*2
    14791478* sets the comparision routine for monomials: for the first block
    1480 * of variables (or is the number of the ordering)
     1479* of variables (o_r is the number of the ordering)
    14811480*/
    14821481#ifdef COMP_FAST
    1483 static void SimpleChooseC(int or, int comp_order, pCompProc *p)
     1482static void SimpleChooseC(int o_r, int comp_order, pCompProc *p)
    14841483#else 
    1485 static void SimpleChooseC(int or, pCompProc *p)
     1484static void SimpleChooseC(int o_r, pCompProc *p)
    14861485#endif 
    14871486{
     
    14931492  else
    14941493  {
    1495     switch(or)
     1494    switch(o_r)
    14961495    {
    14971496        case ringorder_lp:
     
    15191518#ifdef PDEBUG
    15201519        default:
    1521           Werror("wrong internal ordering:%d at %s, l:%d\n",or,__FILE__,__LINE__);
    1522 #endif
    1523     }
    1524   }
    1525   if (or == ringorder_lp || or == ringorder_ls)
     1520          Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__);
     1521#endif
     1522    }
     1523  }
     1524  if (o_r == ringorder_lp || o_r == ringorder_ls)
    15261525  {
    15271526      pLexOrder=TRUE;
    15281527      pFDeg = pTotaldegree;
    15291528      pLDeg = ldeg1c;
    1530       if (or == ringorder_ls) pLexSgn = -1;
     1529      if (o_r == ringorder_ls) pLexSgn = -1;
    15311530  }
    15321531 
     
    15341533#endif
    15351534#ifdef COMP_FAST
    1536   switch(or)
     1535  switch(o_r)
    15371536  {
    15381537      case ringorder_dp:
     
    15751574        break;
    15761575      default:
    1577         Werror("wrong internal ordering:%d at %s, l:%d\n",or,__FILE__,__LINE__);
    1578 #endif
    1579   }
    1580   if (or == ringorder_lp || or == ringorder_ls)
     1576        Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__);
     1577#endif
     1578  }
     1579  if (o_r == ringorder_lp || o_r == ringorder_ls)
    15811580  {
    15821581    pLexOrder=TRUE;
    15831582    pFDeg = pTotaldegree;
    15841583    pLDeg = ldeg1c;
    1585     if (or == ringorder_ls)
     1584    if (o_r == ringorder_ls)
    15861585     pSetVarIndicies_Lex(pVariables);
    15871586  }
     
    15961595/*2
    15971596* sets the comparision routine for monomials: for all but the first
    1598 * block of variables (ip is the block number, or the number of the ordering)
    1599 */
    1600 static void HighSet(int ip, int or)
    1601 {
    1602   switch(or)
     1597* block of variables (ip is the block number, o_r the number of the ordering)
     1598*/
     1599static void HighSet(int ip, int o_r)
     1600{
     1601  switch(o_r)
    16031602  {
    16041603    case ringorder_lp:
     
    16581657#ifdef TEST
    16591658    default:
    1660       Werror("wrong internal ordering:%d at %s, l:%d\n",or,__FILE__,__LINE__);
     1659      Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__);
    16611660#endif
    16621661  }
Note: See TracChangeset for help on using the changeset viewer.