Changeset 40e88db in git


Ignore:
Timestamp:
Jan 6, 2012, 9:34:02 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
e77676b144a632a4f4be31c2b5ece802a9c3c2f5
Parents:
79020f1e7903b16af027b1e0a1240dd1b386a87a
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-01-06 21:34:02+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-01-06 21:59:37+01:00
Message:
hidden private internal decarations and definitions (nv*) within modulop.cc
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/modulop.cc

    r79020f r40e88db  
    2828/// Our Type!
    2929static const n_coeffType ID = n_Zp;
     30
     31#ifdef NV_OPS
     32#pragma GCC diagnostic ignored "-Wlong-long"
     33static inline number nvMultM(number a, number b, const coeffs r)
     34{
     35  assume( getCoeffType(r) == ID );
     36 
     37#if SIZEOF_LONG == 4
     38#define ULONG64 (unsigned long long)(unsigned long)
     39#else
     40#define ULONG64 (unsigned long)
     41#endif
     42  return (number)
     43      (unsigned long)((ULONG64 a)*(ULONG64 b) % (ULONG64 r->ch));
     44}
     45number  nvMult        (number a, number b, const coeffs r);
     46number  nvDiv         (number a, number b, const coeffs r);
     47number  nvInvers      (number c, const coeffs r);
     48void    nvPower       (number a, int i, number * result, const coeffs r);
     49#endif
     50
     51
     52
    3053
    3154BOOLEAN npGreaterZero (number k, const coeffs r)
  • libpolys/coeffs/modulop.h

    r79020f r40e88db  
    168168
    169169
    170 #ifdef NV_OPS
    171 #pragma GCC diagnostic ignored "-Wlong-long"
    172 static inline number nvMultM(number a, number b, const coeffs r)
    173 {
    174 #if SIZEOF_LONG == 4
    175 #define ULONG64 (unsigned long long)(unsigned long)
    176 #else
    177 #define ULONG64 (unsigned long)
    178 #endif
    179   return (number)
    180     (unsigned long)((ULONG64 a)*(ULONG64 b) % (ULONG64 r->npPrimeM));
    181 }
    182 number  nvMult        (number a, number b, const coeffs r);
    183 number  nvDiv         (number a, number b, const coeffs r);
    184 number  nvInvers      (number c, const coeffs r);
    185 void    nvPower       (number a, int i, number * result, const coeffs r);
    186 #endif
    187170
    188171#endif
Note: See TracChangeset for help on using the changeset viewer.