Changeset 009d80 in git for kernel/pp_Mult_nn__T.cc


Ignore:
Timestamp:
May 10, 2007, 10:12:44 AM (17 years ago)
Author:
Oliver Wienand <wienand@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
4cd2f891f36b9e1d58f0aeaa4683254f54088298
Parents:
4bebba7353438f052b4ad581ede34fa6f31e5a71
Message:
new compile switch: HAVE_RINGS
at total there are now: HAVE_RINGS, HAVE_RING2TOM, HAVE_RINGMODN

kspoly.cc, kstd1.cc, kstd2.cc, kutil.cc, kspoly.cc, polys.cc, ring.*:
adaption of new switches and rField_is_Ring method

numbers.*:
introduced new operation:
  nDivBy(a, b) = Is a divisible by b?

pDebig.cc, pInline1.h:
use of new nDivBy method

p_Mult_q:
new routine for rings

p_*, pp_*:
template switch HAVE_ZERODIVISOR

polys1.cc:
poly exponentation, switches

rmodulo*:
nDivBy implementation, DBTest

structs.h:
nDivBy, ringtype, ringflaga, ringflagb


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

Legend:

Unmodified
Added
Removed
  • kernel/pp_Mult_nn__T.cc

    r4bebba r009d80  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: pp_Mult_nn__T.cc,v 1.5 2007-05-03 14:04:34 Singular Exp $
     9 *  Version: $Id: pp_Mult_nn__T.cc,v 1.6 2007-05-10 08:12:43 wienand Exp $
    1010 *******************************************************************/
    1111
     
    2828  do
    2929  {
    30 #if !defined(HAVE_RING2TOM) && !defined(HAVE_RINGMODN)
     30#ifndef HAVE_ZERODIVISORS
    3131    p_AllocBin(pNext(q), bin, r);
    3232    q = pNext(q);
     
    3737    number nc = pGetCoeff(p);
    3838    number tmp = n_Mult(n, nc, r);
    39     if (r->cring==0 || (r->cring ==1 && (long) tmp != 0))
     39    if (tmp != NULL)
    4040    {
    4141      p_AllocBin(pNext(q), bin, r);
Note: See TracChangeset for help on using the changeset viewer.