Changeset 0a78c3 in git
- Timestamp:
- Jul 9, 2009, 2:11:34 PM (14 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- b14053699cd89db8efa9555fbd217a30294502cc
- Parents:
- 7fab0e07488f850047c93418e70535b1a85aacdc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/modulop.cc
r7fab0e r0a78c3 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: modulop.cc,v 1.1 4 2008-12-08 15:00:43Singular Exp $ */4 /* $Id: modulop.cc,v 1.15 2009-07-09 12:11:34 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: numbers modulo p (<=32003) … … 152 152 { 153 153 #ifndef HAVE_DIV_MOD 154 return (number) npExpTable[npPminus1M - npLogTable[(long)c]];154 return (number)(long)npExpTable[npPminus1M - npLogTable[(long)c]]; 155 155 #else 156 long inv= npInvTable[(long)c];156 long inv=(long)npInvTable[(long)c]; 157 157 if (inv==0) 158 158 { … … 183 183 if (s < 0) 184 184 s += npPminus1M; 185 return (number) npExpTable[s];185 return (number)(long)npExpTable[s]; 186 186 } 187 187 #else
Note: See TracChangeset
for help on using the changeset viewer.