Changeset d9430f7 in mainline


Ignore:
Timestamp:
2005-09-18T21:43:11Z (19 years ago)
Author:
Sergey Bondari <bondari@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a2dc632
Parents:
104dc0b
Message:

I think some comments to the algoritm would be helful

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/asm.h

    r104dc0b rd9430f7  
    230230       
    231231        __asm__ __volatile__(
     232                /* copy all full dwords */
    232233                "rep movsl\n\t"
     234                /* load count again */
    233235                "movl %4, %%ecx\n\t"
     236                /* ecx = ecx mod 4 */
    234237                "andl $3, %%ecx\n\t"
     238                /* are there last <=3 bytes? */
    235239                "jz 1f\n\t"
     240                /* copy last <=3 bytes */
    236241                "rep movsb\n\t"
     242                /* exit from asm block */
    237243                "1:\n"
    238244                : "=&c" (d0), "=&D" (d1), "=&S" (d2)
Note: See TracChangeset for help on using the changeset viewer.