Re: OT : Approximate / fast math libraries ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 1 Sep 2007 11:28:28 +0100
Chris Jones <jonesc@xxxxxxxxxxxxxxxxx> wrote:

> 
> > Another poster mentioned that pentiums
> > have hardware instructions for trig functions.
> > If you are using them, there isn't much hope for speed up.
> 
> Out of interest, whats needs to be done to use these, some gcc flag ? My 
> profiling suggests that atan2(x,y) is taking ~ 50% of some method speed. Yes, 
> the methods is already fast, but still is this reasonable if hardware 
> instructions are being used. Is there some way I can check to see exactly 
> what is used ?

You can use the binutils tools to disassemble the code if you want, or
gdb to trace the instructions and step them (stepi) one at a time.

The Intel hardware FP is pretty fast especially on the later processors
and there's probably not a lot you can do to beat it. The AMD processors
have some limited low precision trig functions in the 3DNow extensions
designed for fast 3D gaming (before the cards started doing all the
work ;))

Failing that small lookup tables are about the only option although if
your precision is high the cache miss cost rapidly exceeds the gain from
avoiding the FP math.

Alan

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux