This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
New macros __SSE_MATH__ and __SSE2_MATH__
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com
- Date: Thu, 22 Aug 2002 15:34:54 +0200
- Subject: New macros __SSE_MATH__ and __SSE2_MATH__
Hi,
those macros can be used in stuff inlining math, like mathinline.h to
choose x87 or SSE implementation.
Thu Aug 22 15:34:10 CEST 2002 Jan Hubicka <jh@suse.cz>
* i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
Index: i386.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.h,v
retrieving revision 1.280
diff -c -3 -p -r1.280 i386.h
*** i386.h 31 Jul 2002 23:18:43 -0000 1.280
--- i386.h 22 Aug 2002 13:14:37 -0000
*************** extern int x86_prefetch_sse;
*** 537,542 ****
--- 537,546 ----
builtin_define ("__SSE__"); \
if (TARGET_SSE2) \
builtin_define ("__SSE2__"); \
+ if (TARGET_SSE_MATH && TARGET_SSE) \
+ builtin_define ("__SSE_MATH__"); \
+ if (TARGET_SSE_MATH && TARGET_SSE2) \
+ builtin_define ("__SSE2_MATH__"); \
\
/* Built-ins based on -march=. */ \
if (ix86_arch == PROCESSOR_I486) \