[vorbis-dev] optimization patches

Taral taral at taral.net
Thu Aug 31 12:21:21 PDT 2000


On 31 Aug, Segher Boessenkool wrote:

> I added -mno-ieee-fp to the compile flags; I _think_ fabs() is ok in
> this case. I'll test; no ieee is a huge speedup on x86 anyway.

Really? I see: (gcc version 2.95.3 19991030)

(code)

d = fabs(d);
if (d < 4) ...

(without -mno-ieee-fp)

fldl ...
fabs
fstl ...
fcompl ...
fnstsw ax
and ah, 0x45
cmp ah, 0x1
jne ...

(with -mno-ieee-fp)

fldl ...
fabs
fstl ...
fcompl ...
fnstsw ax
test eax, 0x100
je ...

Not really a huge difference, is it?

Taral


-- 
Taral <taral at taral.net>
Please use PGP/GPG to send me mail.



<HR NOSHADE>
<UL>
<LI>APPLICATION/pgp-signature attachment: stored
</UL>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/octet-stream
Size: 241 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20000831/a12d4e0c/part.obj


More information about the Vorbis-dev mailing list