Changeset fc34c4 in git
- Timestamp:
- Nov 21, 2013, 8:35:14 PM (10 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 40971d53362e3fb612b5ee52d46dc9023f52e8cd
- Parents:
- a2f79c054ca40c801a773fd34d33c63c5b21f130e8cd086d3ec855c9abedde655e4bea26079de829
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/modulop.h
ra2f79c rfc34c4 125 125 r->ch-(long)b+(long)a : (long)a-(long)b); 126 126 } 127 128 static inline number npNegM(number a, const coeffs r) 129 { 130 return (number)((long)(r->ch)-(long)(a)); 131 } 132 127 133 #else 128 134 static inline number npAddM(number a, number b, const coeffs r) … … 147 153 return (number)res; 148 154 } 155 156 157 static inline number npNegM(number b, const coeffs r) 158 { 159 long res = - (long)b; 160 #if SIZEOF_LONG == 8 161 res += (res >> 63) & r->ch; 162 #else 163 res += (res >> 31) & r->ch; 164 #endif 165 return (number)res; 166 } 167 149 168 #endif 150 169 … … 160 179 161 180 162 #define npNegM(A,r) (number)((long)r->ch-(long)(A)) 181 182 183 163 184 #define npEqualM(A,B,r) ((A)==(B)) 164 185
Note: See TracChangeset
for help on using the changeset viewer.