Re: compare
- From: "wolfgang kern" <nowhere@xxxxxxxxxxx>
- Date: Fri, 19 Aug 2005 20:05:21 +0200
"¬a\/b" repeated:
Before I try to analyse this ...
Can you please tell me in one sentence what you like to compare ?
I'm not too familiar with HLL-(Proc/type-casted)-styled routines,
so I cannot even guess your target.
On a first glimpse it looks like a big-num (by ptr) bounds check
or should it be a string-comparision?
__
wolfgang
| >; int operator==(const snum& i, const snum& j)
| >; 0j,4i,8r,12b,16Ra, 20P_i, 24P_j
| >_oper_snum_uu:
| > push ebx
| > push edx
| > push esi
| > push edi
| >%define @i [esp+20]
| >%define @j [esp+24]
| > mov esi, @i
| > mov edi, @j
| > mov edx, [esi]
| > cmp edx, [edi]
| > jne .c1
| > mov edx, [edi+12]
| > cmp edx, [esi+12]
| > jne .c1
| > mov ebx, [esi+4]
| > mov esi, [edi+4]
| > lea edi, [ebx+edx]
|
| lea edi, [ebx+4*edx]
|
| >.c0:
| > mov eax, [ebx]
| > cmp eax, [esi]
| > jne .c1
| > add ebx, 4
| > add esi, 4
| > cmp ebx, edi
| > jb .c0
| >
| > mov eax, 1
| > jmp short .c2
| >
| >.c1: ; 0 1 2 3 len=3 b+r->3
| > ; this seems ok
| > mov eax, 0
| >.c2:
| >%undef @i
| >%undef @j
| > pop edi
| > pop esi
| > pop edx
| > pop ebx
| > ret
.
- Follow-Ups:
- Re: compare
- From: ¬a\\/b
- Re: compare
- References:
- Re: compare
- From: ¬a\\/b
- Re: compare
- Prev by Date: Re: B0
- Next by Date: Re: Code generation from the Gospel according to f0dder
- Previous by thread: Re: compare
- Next by thread: Re: compare
- Index(es):
Relevant Pages
|