Changeset df2551 in git


Ignore:
Timestamp:
Dec 2, 2010, 6:23:15 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4d9fa541e3d001e503b8e0fd8199d011b84156bf
Parents:
132ea18201bc14d61257de417dc471d72ff8e529
Message:
code cleanup: rIsExtension()

git-svn-id: file:///usr/local/Singular/svn/trunk@13712 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/ring.cc

    r132ea1 rdf2551  
    736736}
    737737
    738 int  rIsExtension(ring r)
     738int  rIsExtension(const ring r)
    739739{
    740740  return (r->parameter!=NULL); /* R, Q, Fp: FALSE */
    741741}
    742742
    743 int  rIsExtension()
    744 {
    745   return rIsExtension( currRing );
    746 }
    747 
    748 int binaryPower (const int a, const int b)
     743static int binaryPower (const int a, const int b)
    749744{
    750745  /* computes a^b according to the binary representation of b,
  • kernel/ring.h

    r132ea1 rdf2551  
    132132#define rVar(r) (r->N)
    133133char * rParStr(ring r);
    134 int    rIsExtension(ring r);
    135 int    rIsExtension();
     134int    rIsExtension(const ring r=currRing);
    136135int    rSum(ring r1, ring r2, ring &sum);
    137136int rSumInternal(ring r1, ring r2, ring &sum, BOOLEAN vartest, BOOLEAN dp_dp);
Note: See TracChangeset for help on using the changeset viewer.