[cfe-commits] [PATCH] Add missing "static" to altivec.h
Hal Finkel
hfinkel at anl.gov
Wed Oct 31 11:11:46 PDT 2012
----- Original Message -----
> From: "Ulrich Weigand" <Ulrich.Weigand at de.ibm.com>
> To: "Hal Finkel" <hfinkel at anl.gov>
> Cc: cfe-commits at cs.uiuc.edu
> Sent: Wednesday, October 31, 2012 12:56:27 PM
> Subject: Re: [cfe-commits] [PATCH] Add missing "static" to altivec.h
>
> Hal Finkel <hfinkel at anl.gov> wrote on 31.10.2012 17:33:57:
>
> > The change looks good. Should we add a testcase?
>
> Ah, good point. Like this?
Yep, that should work. As nbjoerg points out on IRC, these functions should probably have __always_inline__ also. If you look at xmmintrin.h, all of the functions look like this:
static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
_mm_div_ss(__m128 a, __m128 b)
...
We should probably do that same.
-Hal
>
> Thanks,
> Ulrich
>
> (See attached file: diff-clang-altivec)
--
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
More information about the cfe-commits
mailing list