[Liboil] scalar{min,max}imum_f32
Stephane Fillod
f8cfe at free.fr
Wed Dec 21 12:26:55 PST 2005
On Thu, Dec 15, 2005 at 11:45:53AM -0800, David Schleef wrote:
> On Tue, Dec 13, 2005 at 09:56:08PM +0100, Stephane Fillod wrote:
> > > +static void
> > > +scalarminimum_f32_sse (float *dest, float *src1, float *val, int n)
> >
> > Defining "const float* src1, const float *val " may help some compilers.
>
> Indeed. The Liboil source code isn't very good about this. It
> would be a good project for someone that wants to get their hands
> dirty, or a bored maintainer.
What about transparent support for the following helpers/macros,
where available (otherwise do nothing):
* restrict
* prefetch(), prefetchw() and __builtin_prefetch with GCC or asm()
* likely()/unlikely() and __builtin_expect with GCC
* nothrow
* pure
* ..
Gathered in an header file, they may come handy for portable
C implementations and modern compilers.
--
Stephane
More information about the Liboil
mailing list