Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ppc_intrinsics -- astrcmp misdefined?



On Monday, September 1, 2003, at 10:34 AM, Andrew Pinski wrote:

On Sunday, Aug 31, 2003, at 23:02 US/Pacific, Brian Barnes wrote:
And get abs + fabs in there too :)

fabs/fabsf ppc_intrinsics, you do not need to use as GCC already "inlines" for absf/fabsf.
Also in newer versions of GCC, it will use fsel more.

If you are doing lot of floating point, I would try this option: -funsafe-math-optimizations.
It might help you in speed but might hurt you in precision.

You can also use -ffast_math, which turns on unsafe and turns off a bunch of error checking. Good for games :)

I always wanted to go through all the 65,785 million optimizations options in gcc and see what each one does to a standard benchmark, but I'm too lazy and somebody probably already has. I've gotten the best with (under O3):

-mdynamic-no-pic -funroll-loops -ffast-math -fstrict-aliasing -mcpu=7400 -force_cpusubtype_ALL

Anything else anybody might be using that might be useful? Note: I love the fact that the IBM compiler seems to have a -05!

[>] Brian
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: ppc_intrinsics -- astrcmp misdefined? (From: Andrew Pinski <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.