Changeset 3700
- Timestamp:
- 07/03/08 06:22:25 (2 months ago)
- Files:
-
- trunk/tango/math/impl/BignumX86.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tango/math/impl/BignumX86.d
r3674 r3700 24 24 * at www.agner.org. 25 25 * Not optimal for AMD64, which can do two memory loads per cycle (Intel 26 * CPUs can only do one). 26 * CPUs can only do one). Division is far from optimal. 27 27 * 28 28 * Timing results (cycles per int) … … 35 35 * mulAdd 5.4 36 36 * div 18.0 37 * 37 38 */ 38 39 … … 178 179 * Returns final carry or borrow (0 or 1) 179 180 */ 180 uint multibyte AddSubCarry(char op)(uint[] dest, uint carry)181 uint multibyteIncrement(char op)(uint[] dest, uint carry) 181 182 { 182 183 enum { LASTPARAM = 1*4 } // 0* pushes + return address.












