Vinzent Hoefler wrote:
Oh right! Something like a masked compare or so...probably not
implementable in an efficient way indeed I guess.


Whatever you call efficient. A simple memory compare won't do, as others already pointed out, and everything else depends on the actual layout of the structure.

Your structure is very short, code length will explode for larger structures. It's inefficient compared to "REPE CMPSD" with proper context, this is only a few lines.

        andl    $56, %eax
        andl    $56, %edx
        cmpb    %al, %dl
        je      .L49
.L42:
        movl    %esi, %eax
        popl    %edx
        popl    %ebx
        popl    %esi
        ret

What does this part do btw? Compare lengths?

Micha

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to