Changeset 1d579f6 in git for Singular/iparith.cc
- Timestamp:
- Aug 8, 2012, 7:39:04 PM (12 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5a9fa5b7d1ac962a8021ec5c356fac13a269446d
- Parents:
- b317e9f5bcba11f3fda341729917fba303eff9bd
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-08-08 19:39:04+02:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-08-08 19:39:49+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
rb317e9 r1d579f6 1118 1118 return TRUE; 1119 1119 } 1120 int bb=ABS(b); 1121 int c=a%bb; 1122 if(c<0) c+=bb; 1120 int c=a%b; 1123 1121 int r=0; 1124 1122 switch (iiOp) … … 1126 1124 case '%': 1127 1125 r=c; break; 1126 case '/': 1128 1127 case INTDIV_CMD: 1129 1128 r=((a-c) /b); break; 1130 case '/':1131 r= (a / b); break;1132 1129 } 1133 1130 res->data=(void *)((long)r);
Note: See TracChangeset
for help on using the changeset viewer.