Changeset 729 for trunk/lib


Ignore:
Timestamp:
Nov 28, 2010, 6:13:41 PM (9 years ago)
Author:
cameron
Message:

Slight improvement of double_int64_adc/ADC64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/block_carry.h

    r728 r729  
    7474
    7575#define double_int64_adc(x1, x2, y1, y2, rslt1, rslt2, carry) \
    76    __asm__ __volatile__ ("neg %[carryin]\n\t" \
     76   __asm__ __volatile__ ("neg %[carryflag]\n\t" \
    7777         "adc %[e1], %[z1]\n\t" \
    7878         "adc %[e2], %[z2]\n\t" \
    79          "mov $0, %[carryout]\n\t" \
    80          "adc $0, %[carryout]\n\t" \
    81          : [z1] "=a" (rslt1), [z2] "=r" (rslt2), [carryout] "=r" (carry) \
    82          : "0" (y1), "1" (y2), [carryin] "2" (carry), \
    83                    [e1] "b" (x1), [e2] "r" (x2)\
    84          : "cc")
     79         "mov $0, %[carryflag]\n\t" \
     80         "adc $0, %[carryflag]\n\t" \
     81     : [z1] "=r" (rslt1), [z2] "=r" (rslt2), [carryflag] "=r" (carry) \
     82         : "[z1]" (x1), "[z2]" (x2), \
     83           [e1] "r" (y1), [e2] "r" (y2), \
     84           "[carryflag]" (carry) \
     85         : "cc")
     86
    8587
    8688#define adc128(first, second, carry, sum) \
Note: See TracChangeset for help on using the changeset viewer.