Eric Botcazou <ebotca...@adacore.com> writes:
>> Doh!  But in that case, rather than:
>> 
>> 1:
>>      beq     r1,r2,2f
>>      addiu   r1,r1,interval
>>      b       1b
>>      sw      $0,0(r1)
>> 2:
>> 
>> why not just:
>> 
>> 1:
>>      addiu   r1,r1,interval
>>      bne     r1,r2,1b
>>      sw      $0,0(r1)
>> 
>> ?
>
> The latter will always probe once, the former won't, if ROUNDED_SIZE == 0.

But why do we want the loop at all if the rounded size is zero?
It's a compile-time constant after all.

Richard

Reply via email to