Changeset 1d579f6 in git


Ignore:
Timestamp:
Aug 8, 2012, 7:39:04 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '96ce329119711a2b80858c8365abd29f8460bbfa')
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
Message:
fix: use c-% for mod and % for int
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    rb317e9 r1d579f6  
    11181118    return TRUE;
    11191119  }
    1120   int bb=ABS(b);
    1121   int c=a%bb;
    1122   if(c<0) c+=bb;
     1120  int c=a%b;
    11231121  int r=0;
    11241122  switch (iiOp)
     
    11261124    case '%':
    11271125        r=c;            break;
     1126    case '/':
    11281127    case INTDIV_CMD:
    11291128        r=((a-c) /b);   break;
    1130     case '/':
    1131         r= (a / b);     break;
    11321129  }
    11331130  res->data=(void *)((long)r);
  • Tst/Manual/int_operations.res.gz.uu

    rb317e9 r1d579f6  
    11begin 640 int_operations.res.gz
    2 M'XL(",,I<DX``VEN=%]O<&5R871I;VYS+G)E<P"-4L%2PC`0O?<KWC`R`Y2T
    3 MI("B+1S4"S..%SP+D40:!E*G2>'WW=2V>O22[+Q]>9NWNYNWY_4K`+["R_H1
    4 M/6===-(?O104;;71;C!,`W]CM8(V;EM\J5(X71@;&76-K!,NV#0JR8H.(D$O
    5 M>=JATQ8]_F*S&@O#%#JE@#$?!$G`.\;<,^(880AA)!B#+&`*AU*YJC00N(A3
    6 MI2`L:>-IC+TP/BVLU0?3R=Q&=!RQK(L%I#<:H=2'W,%JJ:!MK2D@A:O.X^;U
    7 M67D/!U.42G9*=\V'7*Z:TL4G*9-"9?:Y,(<_W$5=M?8T(5<M?/_C.ADC87J,
    8 M^7N2!C-,D,Q;"I]XRAQ27T"T17]*74&GP+E/LRY/4=S<YT(V41])Z]1WG:C:
    9 MTKQPU2['+MX]H+(*.\)W1+!.">E;>-)&^2'_1S[+`C8%2\#!NI'Q>OP\\_:R
    10 ;)?V!XS='2^`WRJ]+90=\F-X$W[(/YU1\`@``
     2M'XL(",VC(E```VEN=%]O<&5R871I;VYS+G)E<P"-4EU/PC`4?=^O."&2`/NB
     3M@RFZP8/Z0F)\P6=9974K@<ZL'?Q];^<V?31IVIMS3\_]W+T];U\!L`U>MH\8
     4M&6V"D_P8)2!K+Y4TDVGBV!>;#:0R^^I+U-S(2NE`B6N@#3?.KE.)-G01"7+-
     5MD@%=].CQ%UNVF.LFD`D9OF\-)W+8P(@M(PSANN`JA^\CKZ`J@UJ8IE;@N/!3
     6M(\`U:>/)PX$KZ^9:RT(-,K<!74>LVV`.Z<UFJ&51&FB9"TC=:G+DW#1GK_M]
     7M%K:&0E6UR`>ENRXA4XHN=/5)RJ30J$/)5?&'NVJCMC7-J:H>OO^I.O(0^=)#
     8M_!XESA)S1'%/87-+B9'+"XBV&B^H*Q@4&+-N?_"3%7;ON<H[:XRHK]1VG:A2
     9MT[QPE:9$%F8/:+1`1GA&!&T$SVT+3U().^3_R*>IXT>PA]$9LFOGSU);7[JF
     10:)!A^?;0%=J7LOC1ZPJ;)C?,-3Y9U7WT"````
    1111`
    1212end
Note: See TracChangeset for help on using the changeset viewer.