Changeset f0af17 in git
 Timestamp:
 Apr 12, 2013, 12:29:11 PM (10 years ago)
 Branches:
 (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
 Children:
 80f146cd522414ce52432c92dfa9773f1a0952d4
 Parents:
 b1d1ab3d52a1e071ff9951a82b411435d01f77b4
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

libpolys/coeffs/modulop.h
rb1d1ab3 rf0af17 117 117 static inline number npAddM(number a, number b, const coeffs r) 118 118 { 119 long R = (long)a + (long)b;119 unsigned long R = (unsigned long)a + (unsigned long)b; 120 120 return (number)(R >= r>ch ? R  r>ch : R); 121 121 } … … 128 128 static inline number npAddM(number a, number b, const coeffs r) 129 129 { 130 long res = ((long)a + (long)b);130 unsigned long res = (long)((unsigned long)a + (unsigned long)b); 131 131 res = r>ch; 132 132 #if SIZEOF_LONG == 8 133 res += ( res >> 63) & r>ch;133 res += ((long)res >> 63) & r>ch; 134 134 #else 135 res += ( res >> 31) & r>ch;135 res += ((long)res >> 31) & r>ch; 136 136 #endif 137 137 return (number)res;
Note: See TracChangeset
for help on using the changeset viewer.