[gmx-developers] #ifdef statement to test for Apple compiler

Jochen Hub jhub at gwdg.de
Thu Jul 12 09:24:19 CEST 2012


Hi,

is there a constant defined in the code that allows to test if gromacs 
is compiled with an Apple compiler?

I ask since I need to compute many sine's and cosines, and the 
SSE2-using function gmx_mm_sincos_ps is slower on a Mac than a simple 
sinf/cosf behind each other. I assume that the Mac uses its optimized 
vsincosf function, that's why its faster than the SSE2-using function. 
So want to use sinf/cosf on the apple, but gmx_mm_sincos_ps anywhere 
else (as long as SSE2 is present). Any idea how to check this?

Many thanks,
Jochen





-- 
---------------------------------------------------
Dr. Jochen Hub
Computational Molecular Biophysics Group
Institute for Microbiology and Genetics
Georg-August-University of Göttingen
Justus-von-Liebig-Weg 11, 37077 Göttingen, Germany.
Phone: +49-551-39-14189
http://cmb.bio.uni-goettingen.de/
---------------------------------------------------




More information about the gromacs.org_gmx-developers mailing list