Message94435
> Most operations are add and subtract, and in each such operation you
> need to look at both signs, and decide if you want to really add or
> subtract, and if you are subtracting, you then have to do a magnitude
> test to see which way - all of that before you do any actual
> computation. That's a lot of overhead for e.g. 'i -= 1'.
Hmm. I agree this isn't ideal, and I now see the attraction of
two's complement. Thanks.
It would be interesting to see timings from such an approach.
Maybe one could just implement the basic operations (+, -, *, /)
to get an idea of whether it's worth considering more seriously. |
|
Date |
User |
Action |
Args |
2009-10-24 19:25:43 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, loewis, gregsmith, rhettinger, pitrou, christian.heimes, sopoforic |
2009-10-24 19:25:42 | mark.dickinson | set | messageid: <1256412342.43.0.0207027571859.issue1087418@psf.upfronthosting.co.za> |
2009-10-24 19:25:41 | mark.dickinson | link | issue1087418 messages |
2009-10-24 19:25:40 | mark.dickinson | create | |
|