os/ossrv/genericopenlibs/liboil/src/c/ag_clamp_c.c
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /* This file is autogenerated.  Do not edit. */
     2 /*
     3  * LIBOIL - Library of Optimized Inner Loops
     4  * Copyright (c) 2005 David A. Schleef <ds@schleef.org>
     5  * All rights reserved.
     6  *
     7  * Redistribution and use in source and binary forms, with or without
     8  * modification, are permitted provided that the following conditions
     9  * are met:
    10  * 1. Redistributions of source code must retain the above copyright
    11  *    notice, this list of conditions and the following disclaimer.
    12  * 2. Redistributions in binary form must reproduce the above copyright
    13  *    notice, this list of conditions and the following disclaimer in the
    14  *    documentation and/or other materials provided with the distribution.
    15  * 
    16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    17  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    19  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
    20  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    22  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    23  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
    24  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
    25  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    26  * POSSIBILITY OF SUCH DAMAGE.
    27  */
    28 //Portions Copyright (c)  2008-2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 
    29 
    30 #ifdef HAVE_CONFIG_H
    31 #include "config.h"
    32 #endif
    33 
    34 #include <math.h>
    35 
    36 #include "liboil/liboil.h"
    37 #include "liboil/liboilclasses.h"
    38 
    39 static void
    40 clamp_s8_pointer (oil_type_s8 *dest, oil_type_s8 *src1,
    41     int n
    42     , oil_type_s8 *low
    43     , oil_type_s8 *high
    44     )
    45 {
    46   while (n) {
    47     oil_type_s8 x = *src1;
    48     if (x < *low) x = *low;
    49     if (x > *high) x = *high;
    50     *dest = x;
    51     dest++;
    52     src1++;
    53     n--;
    54   }
    55 }
    56 OIL_DEFINE_IMPL (clamp_s8_pointer, clamp_s8);
    57 
    58 static void
    59 clamp_u8_pointer (oil_type_u8 *dest, oil_type_u8 *src1,
    60     int n
    61     , oil_type_u8 *low
    62     , oil_type_u8 *high
    63     )
    64 {
    65   while (n) {
    66     oil_type_u8 x = *src1;
    67     if (x < *low) x = *low;
    68     if (x > *high) x = *high;
    69     *dest = x;
    70     dest++;
    71     src1++;
    72     n--;
    73   }
    74 }
    75 OIL_DEFINE_IMPL (clamp_u8_pointer, clamp_u8);
    76 
    77 static void
    78 clamp_s16_pointer (oil_type_s16 *dest, oil_type_s16 *src1,
    79     int n
    80     , oil_type_s16 *low
    81     , oil_type_s16 *high
    82     )
    83 {
    84   while (n) {
    85     oil_type_s16 x = *src1;
    86     if (x < *low) x = *low;
    87     if (x > *high) x = *high;
    88     *dest = x;
    89     dest++;
    90     src1++;
    91     n--;
    92   }
    93 }
    94 OIL_DEFINE_IMPL (clamp_s16_pointer, clamp_s16);
    95 
    96 static void
    97 clamp_u16_pointer (oil_type_u16 *dest, oil_type_u16 *src1,
    98     int n
    99     , oil_type_u16 *low
   100     , oil_type_u16 *high
   101     )
   102 {
   103   while (n) {
   104     oil_type_u16 x = *src1;
   105     if (x < *low) x = *low;
   106     if (x > *high) x = *high;
   107     *dest = x;
   108     dest++;
   109     src1++;
   110     n--;
   111   }
   112 }
   113 OIL_DEFINE_IMPL (clamp_u16_pointer, clamp_u16);
   114 
   115 static void
   116 clamp_s32_pointer (oil_type_s32 *dest, oil_type_s32 *src1,
   117     int n
   118     , oil_type_s32 *low
   119     , oil_type_s32 *high
   120     )
   121 {
   122   while (n) {
   123     oil_type_s32 x = *src1;
   124     if (x < *low) x = *low;
   125     if (x > *high) x = *high;
   126     *dest = x;
   127     dest++;
   128     src1++;
   129     n--;
   130   }
   131 }
   132 OIL_DEFINE_IMPL (clamp_s32_pointer, clamp_s32);
   133 
   134 static void
   135 clamp_u32_pointer (oil_type_u32 *dest, oil_type_u32 *src1,
   136     int n
   137     , oil_type_u32 *low
   138     , oil_type_u32 *high
   139     )
   140 {
   141   while (n) {
   142     oil_type_u32 x = *src1;
   143     if (x < *low) x = *low;
   144     if (x > *high) x = *high;
   145     *dest = x;
   146     dest++;
   147     src1++;
   148     n--;
   149   }
   150 }
   151 OIL_DEFINE_IMPL (clamp_u32_pointer, clamp_u32);
   152 
   153 static void
   154 clamp_s8_unroll4 (oil_type_s8 *dest, oil_type_s8 *src,
   155     int n , oil_type_s8 *low, oil_type_s8 *high)
   156 {
   157   oil_type_s8 x;
   158   while (n&3) {
   159     x = *src;
   160     if (x < *low) x = *low;
   161     if (x > *high) x = *high;
   162 
   163     *dest = x;
   164     dest++;
   165     src++;
   166     n--;
   167   }
   168   n >>= 2;
   169   while (n) {
   170     x = src[0];
   171     if (x < *low) x = *low;
   172     if (x > *high) x = *high;
   173 
   174     dest[0] = x;
   175     x = src[1];
   176     if (x < *low) x = *low;
   177     if (x > *high) x = *high;
   178 
   179     dest[1] = x;
   180     x = src[2];
   181     if (x < *low) x = *low;
   182     if (x > *high) x = *high;
   183 
   184     dest[2] = x;
   185     x = src[3];
   186     if (x < *low) x = *low;
   187     if (x > *high) x = *high;
   188 
   189     dest[3] = x;
   190     dest+=4;
   191     src+=4;
   192     n--;
   193   }
   194 }
   195 OIL_DEFINE_IMPL (clamp_s8_unroll4, clamp_s8);
   196 
   197 static void
   198 clamp_u8_unroll4 (oil_type_u8 *dest, oil_type_u8 *src,
   199     int n , oil_type_u8 *low, oil_type_u8 *high)
   200 {
   201   oil_type_u8 x;
   202   while (n&3) {
   203     x = *src;
   204     if (x < *low) x = *low;
   205     if (x > *high) x = *high;
   206 
   207     *dest = x;
   208     dest++;
   209     src++;
   210     n--;
   211   }
   212   n >>= 2;
   213   while (n) {
   214     x = src[0];
   215     if (x < *low) x = *low;
   216     if (x > *high) x = *high;
   217 
   218     dest[0] = x;
   219     x = src[1];
   220     if (x < *low) x = *low;
   221     if (x > *high) x = *high;
   222 
   223     dest[1] = x;
   224     x = src[2];
   225     if (x < *low) x = *low;
   226     if (x > *high) x = *high;
   227 
   228     dest[2] = x;
   229     x = src[3];
   230     if (x < *low) x = *low;
   231     if (x > *high) x = *high;
   232 
   233     dest[3] = x;
   234     dest+=4;
   235     src+=4;
   236     n--;
   237   }
   238 }
   239 OIL_DEFINE_IMPL (clamp_u8_unroll4, clamp_u8);
   240 
   241 static void
   242 clamp_s16_unroll4 (oil_type_s16 *dest, oil_type_s16 *src,
   243     int n , oil_type_s16 *low, oil_type_s16 *high)
   244 {
   245   oil_type_s16 x;
   246   while (n&3) {
   247     x = *src;
   248     if (x < *low) x = *low;
   249     if (x > *high) x = *high;
   250 
   251     *dest = x;
   252     dest++;
   253     src++;
   254     n--;
   255   }
   256   n >>= 2;
   257   while (n) {
   258     x = src[0];
   259     if (x < *low) x = *low;
   260     if (x > *high) x = *high;
   261 
   262     dest[0] = x;
   263     x = src[1];
   264     if (x < *low) x = *low;
   265     if (x > *high) x = *high;
   266 
   267     dest[1] = x;
   268     x = src[2];
   269     if (x < *low) x = *low;
   270     if (x > *high) x = *high;
   271 
   272     dest[2] = x;
   273     x = src[3];
   274     if (x < *low) x = *low;
   275     if (x > *high) x = *high;
   276 
   277     dest[3] = x;
   278     dest+=4;
   279     src+=4;
   280     n--;
   281   }
   282 }
   283 OIL_DEFINE_IMPL (clamp_s16_unroll4, clamp_s16);
   284 
   285 static void
   286 clamp_u16_unroll4 (oil_type_u16 *dest, oil_type_u16 *src,
   287     int n , oil_type_u16 *low, oil_type_u16 *high)
   288 {
   289   oil_type_u16 x;
   290   while (n&3) {
   291     x = *src;
   292     if (x < *low) x = *low;
   293     if (x > *high) x = *high;
   294 
   295     *dest = x;
   296     dest++;
   297     src++;
   298     n--;
   299   }
   300   n >>= 2;
   301   while (n) {
   302     x = src[0];
   303     if (x < *low) x = *low;
   304     if (x > *high) x = *high;
   305 
   306     dest[0] = x;
   307     x = src[1];
   308     if (x < *low) x = *low;
   309     if (x > *high) x = *high;
   310 
   311     dest[1] = x;
   312     x = src[2];
   313     if (x < *low) x = *low;
   314     if (x > *high) x = *high;
   315 
   316     dest[2] = x;
   317     x = src[3];
   318     if (x < *low) x = *low;
   319     if (x > *high) x = *high;
   320 
   321     dest[3] = x;
   322     dest+=4;
   323     src+=4;
   324     n--;
   325   }
   326 }
   327 OIL_DEFINE_IMPL (clamp_u16_unroll4, clamp_u16);
   328 
   329 static void
   330 clamp_s32_unroll4 (oil_type_s32 *dest, oil_type_s32 *src,
   331     int n , oil_type_s32 *low, oil_type_s32 *high)
   332 {
   333   oil_type_s32 x;
   334   while (n&3) {
   335     x = *src;
   336     if (x < *low) x = *low;
   337     if (x > *high) x = *high;
   338 
   339     *dest = x;
   340     dest++;
   341     src++;
   342     n--;
   343   }
   344   n >>= 2;
   345   while (n) {
   346     x = src[0];
   347     if (x < *low) x = *low;
   348     if (x > *high) x = *high;
   349 
   350     dest[0] = x;
   351     x = src[1];
   352     if (x < *low) x = *low;
   353     if (x > *high) x = *high;
   354 
   355     dest[1] = x;
   356     x = src[2];
   357     if (x < *low) x = *low;
   358     if (x > *high) x = *high;
   359 
   360     dest[2] = x;
   361     x = src[3];
   362     if (x < *low) x = *low;
   363     if (x > *high) x = *high;
   364 
   365     dest[3] = x;
   366     dest+=4;
   367     src+=4;
   368     n--;
   369   }
   370 }
   371 OIL_DEFINE_IMPL (clamp_s32_unroll4, clamp_s32);
   372 
   373 static void
   374 clamp_u32_unroll4 (oil_type_u32 *dest, oil_type_u32 *src,
   375     int n , oil_type_u32 *low, oil_type_u32 *high)
   376 {
   377   oil_type_u32 x;
   378   while (n&3) {
   379     x = *src;
   380     if (x < *low) x = *low;
   381     if (x > *high) x = *high;
   382 
   383     *dest = x;
   384     dest++;
   385     src++;
   386     n--;
   387   }
   388   n >>= 2;
   389   while (n) {
   390     x = src[0];
   391     if (x < *low) x = *low;
   392     if (x > *high) x = *high;
   393 
   394     dest[0] = x;
   395     x = src[1];
   396     if (x < *low) x = *low;
   397     if (x > *high) x = *high;
   398 
   399     dest[1] = x;
   400     x = src[2];
   401     if (x < *low) x = *low;
   402     if (x > *high) x = *high;
   403 
   404     dest[2] = x;
   405     x = src[3];
   406     if (x < *low) x = *low;
   407     if (x > *high) x = *high;
   408 
   409     dest[3] = x;
   410     dest+=4;
   411     src+=4;
   412     n--;
   413   }
   414 }
   415 OIL_DEFINE_IMPL (clamp_u32_unroll4, clamp_u32);
   416 
   417 static void
   418 clamp_s8_trick (oil_type_s8 *dest, oil_type_s8 *src,
   419     int n , oil_type_s8 *low, oil_type_s8 *high)
   420 {
   421   int x;
   422   while (n&3) {
   423     x = *src;
   424     x = x - (((x-*low)>>31)&(x-*low));
   425     x = x + (((*high-x)>>31)&(*high-x));
   426 
   427     *dest = x;
   428     dest++;
   429     src++;
   430     n--;
   431   }
   432   n >>= 2;
   433   while (n) {
   434     x = src[0];
   435     x = x - (((x-*low)>>31)&(x-*low));
   436     x = x + (((*high-x)>>31)&(*high-x));
   437 
   438     dest[0] = x;
   439     x = src[1];
   440     x = x - (((x-*low)>>31)&(x-*low));
   441     x = x + (((*high-x)>>31)&(*high-x));
   442 
   443     dest[1] = x;
   444     x = src[2];
   445     x = x - (((x-*low)>>31)&(x-*low));
   446     x = x + (((*high-x)>>31)&(*high-x));
   447 
   448     dest[2] = x;
   449     x = src[3];
   450     x = x - (((x-*low)>>31)&(x-*low));
   451     x = x + (((*high-x)>>31)&(*high-x));
   452 
   453     dest[3] = x;
   454     dest+=4;
   455     src+=4;
   456     n--;
   457   }
   458 }
   459 OIL_DEFINE_IMPL (clamp_s8_trick, clamp_s8);
   460 
   461 static void
   462 clamp_u8_trick (oil_type_u8 *dest, oil_type_u8 *src,
   463     int n , oil_type_u8 *low, oil_type_u8 *high)
   464 {
   465   int x;
   466   while (n&3) {
   467     x = *src;
   468     x = x - (((x-*low)>>31)&(x-*low));
   469     x = x + (((*high-x)>>31)&(*high-x));
   470 
   471     *dest = x;
   472     dest++;
   473     src++;
   474     n--;
   475   }
   476   n >>= 2;
   477   while (n) {
   478     x = src[0];
   479     x = x - (((x-*low)>>31)&(x-*low));
   480     x = x + (((*high-x)>>31)&(*high-x));
   481 
   482     dest[0] = x;
   483     x = src[1];
   484     x = x - (((x-*low)>>31)&(x-*low));
   485     x = x + (((*high-x)>>31)&(*high-x));
   486 
   487     dest[1] = x;
   488     x = src[2];
   489     x = x - (((x-*low)>>31)&(x-*low));
   490     x = x + (((*high-x)>>31)&(*high-x));
   491 
   492     dest[2] = x;
   493     x = src[3];
   494     x = x - (((x-*low)>>31)&(x-*low));
   495     x = x + (((*high-x)>>31)&(*high-x));
   496 
   497     dest[3] = x;
   498     dest+=4;
   499     src+=4;
   500     n--;
   501   }
   502 }
   503 OIL_DEFINE_IMPL (clamp_u8_trick, clamp_u8);
   504 
   505 static void
   506 clamp_s16_trick (oil_type_s16 *dest, oil_type_s16 *src,
   507     int n , oil_type_s16 *low, oil_type_s16 *high)
   508 {
   509   int x;
   510   while (n&3) {
   511     x = *src;
   512     x = x - (((x-*low)>>31)&(x-*low));
   513     x = x + (((*high-x)>>31)&(*high-x));
   514 
   515     *dest = x;
   516     dest++;
   517     src++;
   518     n--;
   519   }
   520   n >>= 2;
   521   while (n) {
   522     x = src[0];
   523     x = x - (((x-*low)>>31)&(x-*low));
   524     x = x + (((*high-x)>>31)&(*high-x));
   525 
   526     dest[0] = x;
   527     x = src[1];
   528     x = x - (((x-*low)>>31)&(x-*low));
   529     x = x + (((*high-x)>>31)&(*high-x));
   530 
   531     dest[1] = x;
   532     x = src[2];
   533     x = x - (((x-*low)>>31)&(x-*low));
   534     x = x + (((*high-x)>>31)&(*high-x));
   535 
   536     dest[2] = x;
   537     x = src[3];
   538     x = x - (((x-*low)>>31)&(x-*low));
   539     x = x + (((*high-x)>>31)&(*high-x));
   540 
   541     dest[3] = x;
   542     dest+=4;
   543     src+=4;
   544     n--;
   545   }
   546 }
   547 OIL_DEFINE_IMPL (clamp_s16_trick, clamp_s16);
   548 
   549 static void
   550 clamp_u16_trick (oil_type_u16 *dest, oil_type_u16 *src,
   551     int n , oil_type_u16 *low, oil_type_u16 *high)
   552 {
   553   int x;
   554   while (n&3) {
   555     x = *src;
   556     x = x - (((x-*low)>>31)&(x-*low));
   557     x = x + (((*high-x)>>31)&(*high-x));
   558 
   559     *dest = x;
   560     dest++;
   561     src++;
   562     n--;
   563   }
   564   n >>= 2;
   565   while (n) {
   566     x = src[0];
   567     x = x - (((x-*low)>>31)&(x-*low));
   568     x = x + (((*high-x)>>31)&(*high-x));
   569 
   570     dest[0] = x;
   571     x = src[1];
   572     x = x - (((x-*low)>>31)&(x-*low));
   573     x = x + (((*high-x)>>31)&(*high-x));
   574 
   575     dest[1] = x;
   576     x = src[2];
   577     x = x - (((x-*low)>>31)&(x-*low));
   578     x = x + (((*high-x)>>31)&(*high-x));
   579 
   580     dest[2] = x;
   581     x = src[3];
   582     x = x - (((x-*low)>>31)&(x-*low));
   583     x = x + (((*high-x)>>31)&(*high-x));
   584 
   585     dest[3] = x;
   586     dest+=4;
   587     src+=4;
   588     n--;
   589   }
   590 }
   591 OIL_DEFINE_IMPL (clamp_u16_trick, clamp_u16);
   592 
   593 static void
   594 clamphigh_s8_pointer (oil_type_s8 *dest, oil_type_s8 *src1,
   595     int n
   596     , oil_type_s8 *high
   597     )
   598 {
   599   while (n) {
   600     oil_type_s8 x = *src1;
   601     if (x > *high) x = *high;
   602     *dest = x;
   603     dest++;
   604     src1++;
   605     n--;
   606   }
   607 }
   608 OIL_DEFINE_IMPL (clamphigh_s8_pointer, clamphigh_s8);
   609 
   610 static void
   611 clamphigh_u8_pointer (oil_type_u8 *dest, oil_type_u8 *src1,
   612     int n
   613     , oil_type_u8 *high
   614     )
   615 {
   616   while (n) {
   617     oil_type_u8 x = *src1;
   618     if (x > *high) x = *high;
   619     *dest = x;
   620     dest++;
   621     src1++;
   622     n--;
   623   }
   624 }
   625 OIL_DEFINE_IMPL (clamphigh_u8_pointer, clamphigh_u8);
   626 
   627 static void
   628 clamphigh_s16_pointer (oil_type_s16 *dest, oil_type_s16 *src1,
   629     int n
   630     , oil_type_s16 *high
   631     )
   632 {
   633   while (n) {
   634     oil_type_s16 x = *src1;
   635     if (x > *high) x = *high;
   636     *dest = x;
   637     dest++;
   638     src1++;
   639     n--;
   640   }
   641 }
   642 OIL_DEFINE_IMPL (clamphigh_s16_pointer, clamphigh_s16);
   643 
   644 static void
   645 clamphigh_u16_pointer (oil_type_u16 *dest, oil_type_u16 *src1,
   646     int n
   647     , oil_type_u16 *high
   648     )
   649 {
   650   while (n) {
   651     oil_type_u16 x = *src1;
   652     if (x > *high) x = *high;
   653     *dest = x;
   654     dest++;
   655     src1++;
   656     n--;
   657   }
   658 }
   659 OIL_DEFINE_IMPL (clamphigh_u16_pointer, clamphigh_u16);
   660 
   661 static void
   662 clamphigh_s32_pointer (oil_type_s32 *dest, oil_type_s32 *src1,
   663     int n
   664     , oil_type_s32 *high
   665     )
   666 {
   667   while (n) {
   668     oil_type_s32 x = *src1;
   669     if (x > *high) x = *high;
   670     *dest = x;
   671     dest++;
   672     src1++;
   673     n--;
   674   }
   675 }
   676 OIL_DEFINE_IMPL (clamphigh_s32_pointer, clamphigh_s32);
   677 
   678 static void
   679 clamphigh_u32_pointer (oil_type_u32 *dest, oil_type_u32 *src1,
   680     int n
   681     , oil_type_u32 *high
   682     )
   683 {
   684   while (n) {
   685     oil_type_u32 x = *src1;
   686     if (x > *high) x = *high;
   687     *dest = x;
   688     dest++;
   689     src1++;
   690     n--;
   691   }
   692 }
   693 OIL_DEFINE_IMPL (clamphigh_u32_pointer, clamphigh_u32);
   694 
   695 static void
   696 clamphigh_s8_unroll4 (oil_type_s8 *dest, oil_type_s8 *src,
   697     int n , oil_type_s8 *high)
   698 {
   699   oil_type_s8 x;
   700   while (n&3) {
   701     x = *src;
   702     if (x > *high) x = *high;
   703 
   704     *dest = x;
   705     dest++;
   706     src++;
   707     n--;
   708   }
   709   n >>= 2;
   710   while (n) {
   711     x = src[0];
   712     if (x > *high) x = *high;
   713 
   714     dest[0] = x;
   715     x = src[1];
   716     if (x > *high) x = *high;
   717 
   718     dest[1] = x;
   719     x = src[2];
   720     if (x > *high) x = *high;
   721 
   722     dest[2] = x;
   723     x = src[3];
   724     if (x > *high) x = *high;
   725 
   726     dest[3] = x;
   727     dest+=4;
   728     src+=4;
   729     n--;
   730   }
   731 }
   732 OIL_DEFINE_IMPL (clamphigh_s8_unroll4, clamphigh_s8);
   733 
   734 static void
   735 clamphigh_u8_unroll4 (oil_type_u8 *dest, oil_type_u8 *src,
   736     int n , oil_type_u8 *high)
   737 {
   738   oil_type_u8 x;
   739   while (n&3) {
   740     x = *src;
   741     if (x > *high) x = *high;
   742 
   743     *dest = x;
   744     dest++;
   745     src++;
   746     n--;
   747   }
   748   n >>= 2;
   749   while (n) {
   750     x = src[0];
   751     if (x > *high) x = *high;
   752 
   753     dest[0] = x;
   754     x = src[1];
   755     if (x > *high) x = *high;
   756 
   757     dest[1] = x;
   758     x = src[2];
   759     if (x > *high) x = *high;
   760 
   761     dest[2] = x;
   762     x = src[3];
   763     if (x > *high) x = *high;
   764 
   765     dest[3] = x;
   766     dest+=4;
   767     src+=4;
   768     n--;
   769   }
   770 }
   771 OIL_DEFINE_IMPL (clamphigh_u8_unroll4, clamphigh_u8);
   772 
   773 static void
   774 clamphigh_s16_unroll4 (oil_type_s16 *dest, oil_type_s16 *src,
   775     int n , oil_type_s16 *high)
   776 {
   777   oil_type_s16 x;
   778   while (n&3) {
   779     x = *src;
   780     if (x > *high) x = *high;
   781 
   782     *dest = x;
   783     dest++;
   784     src++;
   785     n--;
   786   }
   787   n >>= 2;
   788   while (n) {
   789     x = src[0];
   790     if (x > *high) x = *high;
   791 
   792     dest[0] = x;
   793     x = src[1];
   794     if (x > *high) x = *high;
   795 
   796     dest[1] = x;
   797     x = src[2];
   798     if (x > *high) x = *high;
   799 
   800     dest[2] = x;
   801     x = src[3];
   802     if (x > *high) x = *high;
   803 
   804     dest[3] = x;
   805     dest+=4;
   806     src+=4;
   807     n--;
   808   }
   809 }
   810 OIL_DEFINE_IMPL (clamphigh_s16_unroll4, clamphigh_s16);
   811 
   812 static void
   813 clamphigh_u16_unroll4 (oil_type_u16 *dest, oil_type_u16 *src,
   814     int n , oil_type_u16 *high)
   815 {
   816   oil_type_u16 x;
   817   while (n&3) {
   818     x = *src;
   819     if (x > *high) x = *high;
   820 
   821     *dest = x;
   822     dest++;
   823     src++;
   824     n--;
   825   }
   826   n >>= 2;
   827   while (n) {
   828     x = src[0];
   829     if (x > *high) x = *high;
   830 
   831     dest[0] = x;
   832     x = src[1];
   833     if (x > *high) x = *high;
   834 
   835     dest[1] = x;
   836     x = src[2];
   837     if (x > *high) x = *high;
   838 
   839     dest[2] = x;
   840     x = src[3];
   841     if (x > *high) x = *high;
   842 
   843     dest[3] = x;
   844     dest+=4;
   845     src+=4;
   846     n--;
   847   }
   848 }
   849 OIL_DEFINE_IMPL (clamphigh_u16_unroll4, clamphigh_u16);
   850 
   851 static void
   852 clamphigh_s32_unroll4 (oil_type_s32 *dest, oil_type_s32 *src,
   853     int n , oil_type_s32 *high)
   854 {
   855   oil_type_s32 x;
   856   while (n&3) {
   857     x = *src;
   858     if (x > *high) x = *high;
   859 
   860     *dest = x;
   861     dest++;
   862     src++;
   863     n--;
   864   }
   865   n >>= 2;
   866   while (n) {
   867     x = src[0];
   868     if (x > *high) x = *high;
   869 
   870     dest[0] = x;
   871     x = src[1];
   872     if (x > *high) x = *high;
   873 
   874     dest[1] = x;
   875     x = src[2];
   876     if (x > *high) x = *high;
   877 
   878     dest[2] = x;
   879     x = src[3];
   880     if (x > *high) x = *high;
   881 
   882     dest[3] = x;
   883     dest+=4;
   884     src+=4;
   885     n--;
   886   }
   887 }
   888 OIL_DEFINE_IMPL (clamphigh_s32_unroll4, clamphigh_s32);
   889 
   890 static void
   891 clamphigh_u32_unroll4 (oil_type_u32 *dest, oil_type_u32 *src,
   892     int n , oil_type_u32 *high)
   893 {
   894   oil_type_u32 x;
   895   while (n&3) {
   896     x = *src;
   897     if (x > *high) x = *high;
   898 
   899     *dest = x;
   900     dest++;
   901     src++;
   902     n--;
   903   }
   904   n >>= 2;
   905   while (n) {
   906     x = src[0];
   907     if (x > *high) x = *high;
   908 
   909     dest[0] = x;
   910     x = src[1];
   911     if (x > *high) x = *high;
   912 
   913     dest[1] = x;
   914     x = src[2];
   915     if (x > *high) x = *high;
   916 
   917     dest[2] = x;
   918     x = src[3];
   919     if (x > *high) x = *high;
   920 
   921     dest[3] = x;
   922     dest+=4;
   923     src+=4;
   924     n--;
   925   }
   926 }
   927 OIL_DEFINE_IMPL (clamphigh_u32_unroll4, clamphigh_u32);
   928 
   929 static void
   930 clamphigh_s8_trick (oil_type_s8 *dest, oil_type_s8 *src,
   931     int n , oil_type_s8 *high)
   932 {
   933   int x;
   934   while (n&3) {
   935     x = *src;
   936     x = x + (((*high-x)>>31)&(*high-x));
   937 
   938     *dest = x;
   939     dest++;
   940     src++;
   941     n--;
   942   }
   943   n >>= 2;
   944   while (n) {
   945     x = src[0];
   946     x = x + (((*high-x)>>31)&(*high-x));
   947 
   948     dest[0] = x;
   949     x = src[1];
   950     x = x + (((*high-x)>>31)&(*high-x));
   951 
   952     dest[1] = x;
   953     x = src[2];
   954     x = x + (((*high-x)>>31)&(*high-x));
   955 
   956     dest[2] = x;
   957     x = src[3];
   958     x = x + (((*high-x)>>31)&(*high-x));
   959 
   960     dest[3] = x;
   961     dest+=4;
   962     src+=4;
   963     n--;
   964   }
   965 }
   966 OIL_DEFINE_IMPL (clamphigh_s8_trick, clamphigh_s8);
   967 
   968 static void
   969 clamphigh_u8_trick (oil_type_u8 *dest, oil_type_u8 *src,
   970     int n , oil_type_u8 *high)
   971 {
   972   int x;
   973   while (n&3) {
   974     x = *src;
   975     x = x + (((*high-x)>>31)&(*high-x));
   976 
   977     *dest = x;
   978     dest++;
   979     src++;
   980     n--;
   981   }
   982   n >>= 2;
   983   while (n) {
   984     x = src[0];
   985     x = x + (((*high-x)>>31)&(*high-x));
   986 
   987     dest[0] = x;
   988     x = src[1];
   989     x = x + (((*high-x)>>31)&(*high-x));
   990 
   991     dest[1] = x;
   992     x = src[2];
   993     x = x + (((*high-x)>>31)&(*high-x));
   994 
   995     dest[2] = x;
   996     x = src[3];
   997     x = x + (((*high-x)>>31)&(*high-x));
   998 
   999     dest[3] = x;
  1000     dest+=4;
  1001     src+=4;
  1002     n--;
  1003   }
  1004 }
  1005 OIL_DEFINE_IMPL (clamphigh_u8_trick, clamphigh_u8);
  1006 
  1007 static void
  1008 clamphigh_s16_trick (oil_type_s16 *dest, oil_type_s16 *src,
  1009     int n , oil_type_s16 *high)
  1010 {
  1011   int x;
  1012   while (n&3) {
  1013     x = *src;
  1014     x = x + (((*high-x)>>31)&(*high-x));
  1015 
  1016     *dest = x;
  1017     dest++;
  1018     src++;
  1019     n--;
  1020   }
  1021   n >>= 2;
  1022   while (n) {
  1023     x = src[0];
  1024     x = x + (((*high-x)>>31)&(*high-x));
  1025 
  1026     dest[0] = x;
  1027     x = src[1];
  1028     x = x + (((*high-x)>>31)&(*high-x));
  1029 
  1030     dest[1] = x;
  1031     x = src[2];
  1032     x = x + (((*high-x)>>31)&(*high-x));
  1033 
  1034     dest[2] = x;
  1035     x = src[3];
  1036     x = x + (((*high-x)>>31)&(*high-x));
  1037 
  1038     dest[3] = x;
  1039     dest+=4;
  1040     src+=4;
  1041     n--;
  1042   }
  1043 }
  1044 OIL_DEFINE_IMPL (clamphigh_s16_trick, clamphigh_s16);
  1045 
  1046 static void
  1047 clamphigh_u16_trick (oil_type_u16 *dest, oil_type_u16 *src,
  1048     int n , oil_type_u16 *high)
  1049 {
  1050   int x;
  1051   while (n&3) {
  1052     x = *src;
  1053     x = x + (((*high-x)>>31)&(*high-x));
  1054 
  1055     *dest = x;
  1056     dest++;
  1057     src++;
  1058     n--;
  1059   }
  1060   n >>= 2;
  1061   while (n) {
  1062     x = src[0];
  1063     x = x + (((*high-x)>>31)&(*high-x));
  1064 
  1065     dest[0] = x;
  1066     x = src[1];
  1067     x = x + (((*high-x)>>31)&(*high-x));
  1068 
  1069     dest[1] = x;
  1070     x = src[2];
  1071     x = x + (((*high-x)>>31)&(*high-x));
  1072 
  1073     dest[2] = x;
  1074     x = src[3];
  1075     x = x + (((*high-x)>>31)&(*high-x));
  1076 
  1077     dest[3] = x;
  1078     dest+=4;
  1079     src+=4;
  1080     n--;
  1081   }
  1082 }
  1083 OIL_DEFINE_IMPL (clamphigh_u16_trick, clamphigh_u16);
  1084 
  1085 static void
  1086 clamplow_s8_pointer (oil_type_s8 *dest, oil_type_s8 *src1,
  1087     int n
  1088     , oil_type_s8 *low
  1089     )
  1090 {
  1091   while (n) {
  1092     oil_type_s8 x = *src1;
  1093     if (x < *low) x = *low;
  1094     *dest = x;
  1095     dest++;
  1096     src1++;
  1097     n--;
  1098   }
  1099 }
  1100 OIL_DEFINE_IMPL (clamplow_s8_pointer, clamplow_s8);
  1101 
  1102 static void
  1103 clamplow_u8_pointer (oil_type_u8 *dest, oil_type_u8 *src1,
  1104     int n
  1105     , oil_type_u8 *low
  1106     )
  1107 {
  1108   while (n) {
  1109     oil_type_u8 x = *src1;
  1110     if (x < *low) x = *low;
  1111     *dest = x;
  1112     dest++;
  1113     src1++;
  1114     n--;
  1115   }
  1116 }
  1117 OIL_DEFINE_IMPL (clamplow_u8_pointer, clamplow_u8);
  1118 
  1119 static void
  1120 clamplow_s16_pointer (oil_type_s16 *dest, oil_type_s16 *src1,
  1121     int n
  1122     , oil_type_s16 *low
  1123     )
  1124 {
  1125   while (n) {
  1126     oil_type_s16 x = *src1;
  1127     if (x < *low) x = *low;
  1128     *dest = x;
  1129     dest++;
  1130     src1++;
  1131     n--;
  1132   }
  1133 }
  1134 OIL_DEFINE_IMPL (clamplow_s16_pointer, clamplow_s16);
  1135 
  1136 static void
  1137 clamplow_u16_pointer (oil_type_u16 *dest, oil_type_u16 *src1,
  1138     int n
  1139     , oil_type_u16 *low
  1140     )
  1141 {
  1142   while (n) {
  1143     oil_type_u16 x = *src1;
  1144     if (x < *low) x = *low;
  1145     *dest = x;
  1146     dest++;
  1147     src1++;
  1148     n--;
  1149   }
  1150 }
  1151 OIL_DEFINE_IMPL (clamplow_u16_pointer, clamplow_u16);
  1152 
  1153 static void
  1154 clamplow_s32_pointer (oil_type_s32 *dest, oil_type_s32 *src1,
  1155     int n
  1156     , oil_type_s32 *low
  1157     )
  1158 {
  1159   while (n) {
  1160     oil_type_s32 x = *src1;
  1161     if (x < *low) x = *low;
  1162     *dest = x;
  1163     dest++;
  1164     src1++;
  1165     n--;
  1166   }
  1167 }
  1168 OIL_DEFINE_IMPL (clamplow_s32_pointer, clamplow_s32);
  1169 
  1170 static void
  1171 clamplow_u32_pointer (oil_type_u32 *dest, oil_type_u32 *src1,
  1172     int n
  1173     , oil_type_u32 *low
  1174     )
  1175 {
  1176   while (n) {
  1177     oil_type_u32 x = *src1;
  1178     if (x < *low) x = *low;
  1179     *dest = x;
  1180     dest++;
  1181     src1++;
  1182     n--;
  1183   }
  1184 }
  1185 OIL_DEFINE_IMPL (clamplow_u32_pointer, clamplow_u32);
  1186 
  1187 static void
  1188 clamplow_s8_unroll4 (oil_type_s8 *dest, oil_type_s8 *src,
  1189     int n , oil_type_s8 *low)
  1190 {
  1191   oil_type_s8 x;
  1192   while (n&3) {
  1193     x = *src;
  1194     if (x < *low) x = *low;
  1195 
  1196     *dest = x;
  1197     dest++;
  1198     src++;
  1199     n--;
  1200   }
  1201   n >>= 2;
  1202   while (n) {
  1203     x = src[0];
  1204     if (x < *low) x = *low;
  1205 
  1206     dest[0] = x;
  1207     x = src[1];
  1208     if (x < *low) x = *low;
  1209 
  1210     dest[1] = x;
  1211     x = src[2];
  1212     if (x < *low) x = *low;
  1213 
  1214     dest[2] = x;
  1215     x = src[3];
  1216     if (x < *low) x = *low;
  1217 
  1218     dest[3] = x;
  1219     dest+=4;
  1220     src+=4;
  1221     n--;
  1222   }
  1223 }
  1224 OIL_DEFINE_IMPL (clamplow_s8_unroll4, clamplow_s8);
  1225 
  1226 static void
  1227 clamplow_u8_unroll4 (oil_type_u8 *dest, oil_type_u8 *src,
  1228     int n , oil_type_u8 *low)
  1229 {
  1230   oil_type_u8 x;
  1231   while (n&3) {
  1232     x = *src;
  1233     if (x < *low) x = *low;
  1234 
  1235     *dest = x;
  1236     dest++;
  1237     src++;
  1238     n--;
  1239   }
  1240   n >>= 2;
  1241   while (n) {
  1242     x = src[0];
  1243     if (x < *low) x = *low;
  1244 
  1245     dest[0] = x;
  1246     x = src[1];
  1247     if (x < *low) x = *low;
  1248 
  1249     dest[1] = x;
  1250     x = src[2];
  1251     if (x < *low) x = *low;
  1252 
  1253     dest[2] = x;
  1254     x = src[3];
  1255     if (x < *low) x = *low;
  1256 
  1257     dest[3] = x;
  1258     dest+=4;
  1259     src+=4;
  1260     n--;
  1261   }
  1262 }
  1263 OIL_DEFINE_IMPL (clamplow_u8_unroll4, clamplow_u8);
  1264 
  1265 static void
  1266 clamplow_s16_unroll4 (oil_type_s16 *dest, oil_type_s16 *src,
  1267     int n , oil_type_s16 *low)
  1268 {
  1269   oil_type_s16 x;
  1270   while (n&3) {
  1271     x = *src;
  1272     if (x < *low) x = *low;
  1273 
  1274     *dest = x;
  1275     dest++;
  1276     src++;
  1277     n--;
  1278   }
  1279   n >>= 2;
  1280   while (n) {
  1281     x = src[0];
  1282     if (x < *low) x = *low;
  1283 
  1284     dest[0] = x;
  1285     x = src[1];
  1286     if (x < *low) x = *low;
  1287 
  1288     dest[1] = x;
  1289     x = src[2];
  1290     if (x < *low) x = *low;
  1291 
  1292     dest[2] = x;
  1293     x = src[3];
  1294     if (x < *low) x = *low;
  1295 
  1296     dest[3] = x;
  1297     dest+=4;
  1298     src+=4;
  1299     n--;
  1300   }
  1301 }
  1302 OIL_DEFINE_IMPL (clamplow_s16_unroll4, clamplow_s16);
  1303 
  1304 static void
  1305 clamplow_u16_unroll4 (oil_type_u16 *dest, oil_type_u16 *src,
  1306     int n , oil_type_u16 *low)
  1307 {
  1308   oil_type_u16 x;
  1309   while (n&3) {
  1310     x = *src;
  1311     if (x < *low) x = *low;
  1312 
  1313     *dest = x;
  1314     dest++;
  1315     src++;
  1316     n--;
  1317   }
  1318   n >>= 2;
  1319   while (n) {
  1320     x = src[0];
  1321     if (x < *low) x = *low;
  1322 
  1323     dest[0] = x;
  1324     x = src[1];
  1325     if (x < *low) x = *low;
  1326 
  1327     dest[1] = x;
  1328     x = src[2];
  1329     if (x < *low) x = *low;
  1330 
  1331     dest[2] = x;
  1332     x = src[3];
  1333     if (x < *low) x = *low;
  1334 
  1335     dest[3] = x;
  1336     dest+=4;
  1337     src+=4;
  1338     n--;
  1339   }
  1340 }
  1341 OIL_DEFINE_IMPL (clamplow_u16_unroll4, clamplow_u16);
  1342 
  1343 static void
  1344 clamplow_s32_unroll4 (oil_type_s32 *dest, oil_type_s32 *src,
  1345     int n , oil_type_s32 *low)
  1346 {
  1347   oil_type_s32 x;
  1348   while (n&3) {
  1349     x = *src;
  1350     if (x < *low) x = *low;
  1351 
  1352     *dest = x;
  1353     dest++;
  1354     src++;
  1355     n--;
  1356   }
  1357   n >>= 2;
  1358   while (n) {
  1359     x = src[0];
  1360     if (x < *low) x = *low;
  1361 
  1362     dest[0] = x;
  1363     x = src[1];
  1364     if (x < *low) x = *low;
  1365 
  1366     dest[1] = x;
  1367     x = src[2];
  1368     if (x < *low) x = *low;
  1369 
  1370     dest[2] = x;
  1371     x = src[3];
  1372     if (x < *low) x = *low;
  1373 
  1374     dest[3] = x;
  1375     dest+=4;
  1376     src+=4;
  1377     n--;
  1378   }
  1379 }
  1380 OIL_DEFINE_IMPL (clamplow_s32_unroll4, clamplow_s32);
  1381 
  1382 static void
  1383 clamplow_u32_unroll4 (oil_type_u32 *dest, oil_type_u32 *src,
  1384     int n , oil_type_u32 *low)
  1385 {
  1386   oil_type_u32 x;
  1387   while (n&3) {
  1388     x = *src;
  1389     if (x < *low) x = *low;
  1390 
  1391     *dest = x;
  1392     dest++;
  1393     src++;
  1394     n--;
  1395   }
  1396   n >>= 2;
  1397   while (n) {
  1398     x = src[0];
  1399     if (x < *low) x = *low;
  1400 
  1401     dest[0] = x;
  1402     x = src[1];
  1403     if (x < *low) x = *low;
  1404 
  1405     dest[1] = x;
  1406     x = src[2];
  1407     if (x < *low) x = *low;
  1408 
  1409     dest[2] = x;
  1410     x = src[3];
  1411     if (x < *low) x = *low;
  1412 
  1413     dest[3] = x;
  1414     dest+=4;
  1415     src+=4;
  1416     n--;
  1417   }
  1418 }
  1419 OIL_DEFINE_IMPL (clamplow_u32_unroll4, clamplow_u32);
  1420 
  1421 static void
  1422 clamplow_s8_trick (oil_type_s8 *dest, oil_type_s8 *src,
  1423     int n , oil_type_s8 *low)
  1424 {
  1425   int x;
  1426   while (n&3) {
  1427     x = *src;
  1428     x = x - (((x-*low)>>31)&(x-*low));
  1429 
  1430     *dest = x;
  1431     dest++;
  1432     src++;
  1433     n--;
  1434   }
  1435   n >>= 2;
  1436   while (n) {
  1437     x = src[0];
  1438     x = x - (((x-*low)>>31)&(x-*low));
  1439 
  1440     dest[0] = x;
  1441     x = src[1];
  1442     x = x - (((x-*low)>>31)&(x-*low));
  1443 
  1444     dest[1] = x;
  1445     x = src[2];
  1446     x = x - (((x-*low)>>31)&(x-*low));
  1447 
  1448     dest[2] = x;
  1449     x = src[3];
  1450     x = x - (((x-*low)>>31)&(x-*low));
  1451 
  1452     dest[3] = x;
  1453     dest+=4;
  1454     src+=4;
  1455     n--;
  1456   }
  1457 }
  1458 OIL_DEFINE_IMPL (clamplow_s8_trick, clamplow_s8);
  1459 
  1460 static void
  1461 clamplow_u8_trick (oil_type_u8 *dest, oil_type_u8 *src,
  1462     int n , oil_type_u8 *low)
  1463 {
  1464   int x;
  1465   while (n&3) {
  1466     x = *src;
  1467     x = x - (((x-*low)>>31)&(x-*low));
  1468 
  1469     *dest = x;
  1470     dest++;
  1471     src++;
  1472     n--;
  1473   }
  1474   n >>= 2;
  1475   while (n) {
  1476     x = src[0];
  1477     x = x - (((x-*low)>>31)&(x-*low));
  1478 
  1479     dest[0] = x;
  1480     x = src[1];
  1481     x = x - (((x-*low)>>31)&(x-*low));
  1482 
  1483     dest[1] = x;
  1484     x = src[2];
  1485     x = x - (((x-*low)>>31)&(x-*low));
  1486 
  1487     dest[2] = x;
  1488     x = src[3];
  1489     x = x - (((x-*low)>>31)&(x-*low));
  1490 
  1491     dest[3] = x;
  1492     dest+=4;
  1493     src+=4;
  1494     n--;
  1495   }
  1496 }
  1497 OIL_DEFINE_IMPL (clamplow_u8_trick, clamplow_u8);
  1498 
  1499 static void
  1500 clamplow_s16_trick (oil_type_s16 *dest, oil_type_s16 *src,
  1501     int n , oil_type_s16 *low)
  1502 {
  1503   int x;
  1504   while (n&3) {
  1505     x = *src;
  1506     x = x - (((x-*low)>>31)&(x-*low));
  1507 
  1508     *dest = x;
  1509     dest++;
  1510     src++;
  1511     n--;
  1512   }
  1513   n >>= 2;
  1514   while (n) {
  1515     x = src[0];
  1516     x = x - (((x-*low)>>31)&(x-*low));
  1517 
  1518     dest[0] = x;
  1519     x = src[1];
  1520     x = x - (((x-*low)>>31)&(x-*low));
  1521 
  1522     dest[1] = x;
  1523     x = src[2];
  1524     x = x - (((x-*low)>>31)&(x-*low));
  1525 
  1526     dest[2] = x;
  1527     x = src[3];
  1528     x = x - (((x-*low)>>31)&(x-*low));
  1529 
  1530     dest[3] = x;
  1531     dest+=4;
  1532     src+=4;
  1533     n--;
  1534   }
  1535 }
  1536 OIL_DEFINE_IMPL (clamplow_s16_trick, clamplow_s16);
  1537 
  1538 static void
  1539 clamplow_u16_trick (oil_type_u16 *dest, oil_type_u16 *src,
  1540     int n , oil_type_u16 *low)
  1541 {
  1542   int x;
  1543   while (n&3) {
  1544     x = *src;
  1545     x = x - (((x-*low)>>31)&(x-*low));
  1546 
  1547     *dest = x;
  1548     dest++;
  1549     src++;
  1550     n--;
  1551   }
  1552   n >>= 2;
  1553   while (n) {
  1554     x = src[0];
  1555     x = x - (((x-*low)>>31)&(x-*low));
  1556 
  1557     dest[0] = x;
  1558     x = src[1];
  1559     x = x - (((x-*low)>>31)&(x-*low));
  1560 
  1561     dest[1] = x;
  1562     x = src[2];
  1563     x = x - (((x-*low)>>31)&(x-*low));
  1564 
  1565     dest[2] = x;
  1566     x = src[3];
  1567     x = x - (((x-*low)>>31)&(x-*low));
  1568 
  1569     dest[3] = x;
  1570     dest+=4;
  1571     src+=4;
  1572     n--;
  1573   }
  1574 }
  1575 OIL_DEFINE_IMPL (clamplow_u16_trick, clamplow_u16);
  1576 
  1577 
  1578 
  1579 #ifdef	__SYMBIAN32__
  1580  
  1581 OilFunctionImpl* __oil_function_impl_clamp_s8_pointer() {
  1582 		return &_oil_function_impl_clamp_s8_pointer;
  1583 }
  1584 #endif
  1585 
  1586 #ifdef	__SYMBIAN32__
  1587  
  1588 OilFunctionImpl* __oil_function_impl_clamp_u8_pointer() {
  1589 		return &_oil_function_impl_clamp_u8_pointer;
  1590 }
  1591 #endif
  1592 
  1593 #ifdef	__SYMBIAN32__
  1594  
  1595 OilFunctionImpl* __oil_function_impl_clamp_s16_pointer() {
  1596 		return &_oil_function_impl_clamp_s16_pointer;
  1597 }
  1598 #endif
  1599 
  1600 #ifdef	__SYMBIAN32__
  1601  
  1602 OilFunctionImpl* __oil_function_impl_clamp_u16_pointer() {
  1603 		return &_oil_function_impl_clamp_u16_pointer;
  1604 }
  1605 #endif
  1606 
  1607 #ifdef	__SYMBIAN32__
  1608  
  1609 OilFunctionImpl* __oil_function_impl_clamp_s32_pointer() {
  1610 		return &_oil_function_impl_clamp_s32_pointer;
  1611 }
  1612 #endif
  1613 
  1614 #ifdef	__SYMBIAN32__
  1615  
  1616 OilFunctionImpl* __oil_function_impl_clamp_u32_pointer() {
  1617 		return &_oil_function_impl_clamp_u32_pointer;
  1618 }
  1619 #endif
  1620 
  1621 #ifdef	__SYMBIAN32__
  1622  
  1623 OilFunctionImpl* __oil_function_impl_clamp_s8_unroll4() {
  1624 		return &_oil_function_impl_clamp_s8_unroll4;
  1625 }
  1626 #endif
  1627 
  1628 #ifdef	__SYMBIAN32__
  1629  
  1630 OilFunctionImpl* __oil_function_impl_clamp_u8_unroll4() {
  1631 		return &_oil_function_impl_clamp_u8_unroll4;
  1632 }
  1633 #endif
  1634 
  1635 #ifdef	__SYMBIAN32__
  1636  
  1637 OilFunctionImpl* __oil_function_impl_clamp_s16_unroll4() {
  1638 		return &_oil_function_impl_clamp_s16_unroll4;
  1639 }
  1640 #endif
  1641 
  1642 #ifdef	__SYMBIAN32__
  1643  
  1644 OilFunctionImpl* __oil_function_impl_clamp_u16_unroll4() {
  1645 		return &_oil_function_impl_clamp_u16_unroll4;
  1646 }
  1647 #endif
  1648 
  1649 #ifdef	__SYMBIAN32__
  1650  
  1651 OilFunctionImpl* __oil_function_impl_clamp_s32_unroll4() {
  1652 		return &_oil_function_impl_clamp_s32_unroll4;
  1653 }
  1654 #endif
  1655 
  1656 #ifdef	__SYMBIAN32__
  1657  
  1658 OilFunctionImpl* __oil_function_impl_clamp_u32_unroll4() {
  1659 		return &_oil_function_impl_clamp_u32_unroll4;
  1660 }
  1661 #endif
  1662 
  1663 #ifdef	__SYMBIAN32__
  1664  
  1665 OilFunctionImpl* __oil_function_impl_clamp_s8_trick() {
  1666 		return &_oil_function_impl_clamp_s8_trick;
  1667 }
  1668 #endif
  1669 
  1670 #ifdef	__SYMBIAN32__
  1671  
  1672 OilFunctionImpl* __oil_function_impl_clamp_u8_trick() {
  1673 		return &_oil_function_impl_clamp_u8_trick;
  1674 }
  1675 #endif
  1676 
  1677 #ifdef	__SYMBIAN32__
  1678  
  1679 OilFunctionImpl* __oil_function_impl_clamp_s16_trick() {
  1680 		return &_oil_function_impl_clamp_s16_trick;
  1681 }
  1682 #endif
  1683 
  1684 #ifdef	__SYMBIAN32__
  1685  
  1686 OilFunctionImpl* __oil_function_impl_clamp_u16_trick() {
  1687 		return &_oil_function_impl_clamp_u16_trick;
  1688 }
  1689 #endif
  1690 
  1691 #ifdef	__SYMBIAN32__
  1692  
  1693 OilFunctionImpl* __oil_function_impl_clamphigh_s8_pointer() {
  1694 		return &_oil_function_impl_clamphigh_s8_pointer;
  1695 }
  1696 #endif
  1697 
  1698 #ifdef	__SYMBIAN32__
  1699  
  1700 OilFunctionImpl* __oil_function_impl_clamphigh_u8_pointer() {
  1701 		return &_oil_function_impl_clamphigh_u8_pointer;
  1702 }
  1703 #endif
  1704 
  1705 #ifdef	__SYMBIAN32__
  1706  
  1707 OilFunctionImpl* __oil_function_impl_clamphigh_s16_pointer() {
  1708 		return &_oil_function_impl_clamphigh_s16_pointer;
  1709 }
  1710 #endif
  1711 
  1712 #ifdef	__SYMBIAN32__
  1713  
  1714 OilFunctionImpl* __oil_function_impl_clamphigh_u16_pointer() {
  1715 		return &_oil_function_impl_clamphigh_u16_pointer;
  1716 }
  1717 #endif
  1718 
  1719 #ifdef	__SYMBIAN32__
  1720  
  1721 OilFunctionImpl* __oil_function_impl_clamphigh_s32_pointer() {
  1722 		return &_oil_function_impl_clamphigh_s32_pointer;
  1723 }
  1724 #endif
  1725 
  1726 #ifdef	__SYMBIAN32__
  1727  
  1728 OilFunctionImpl* __oil_function_impl_clamphigh_u32_pointer() {
  1729 		return &_oil_function_impl_clamphigh_u32_pointer;
  1730 }
  1731 #endif
  1732 
  1733 #ifdef	__SYMBIAN32__
  1734  
  1735 OilFunctionImpl* __oil_function_impl_clamphigh_s8_unroll4() {
  1736 		return &_oil_function_impl_clamphigh_s8_unroll4;
  1737 }
  1738 #endif
  1739 
  1740 #ifdef	__SYMBIAN32__
  1741  
  1742 OilFunctionImpl* __oil_function_impl_clamphigh_u8_unroll4() {
  1743 		return &_oil_function_impl_clamphigh_u8_unroll4;
  1744 }
  1745 #endif
  1746 
  1747 #ifdef	__SYMBIAN32__
  1748  
  1749 OilFunctionImpl* __oil_function_impl_clamphigh_s16_unroll4() {
  1750 		return &_oil_function_impl_clamphigh_s16_unroll4;
  1751 }
  1752 #endif
  1753 
  1754 #ifdef	__SYMBIAN32__
  1755  
  1756 OilFunctionImpl* __oil_function_impl_clamphigh_u16_unroll4() {
  1757 		return &_oil_function_impl_clamphigh_u16_unroll4;
  1758 }
  1759 #endif
  1760 
  1761 #ifdef	__SYMBIAN32__
  1762  
  1763 OilFunctionImpl* __oil_function_impl_clamphigh_s32_unroll4() {
  1764 		return &_oil_function_impl_clamphigh_s32_unroll4;
  1765 }
  1766 #endif
  1767 
  1768 #ifdef	__SYMBIAN32__
  1769  
  1770 OilFunctionImpl* __oil_function_impl_clamphigh_u32_unroll4() {
  1771 		return &_oil_function_impl_clamphigh_u32_unroll4;
  1772 }
  1773 #endif
  1774 
  1775 #ifdef	__SYMBIAN32__
  1776  
  1777 OilFunctionImpl* __oil_function_impl_clamphigh_s8_trick() {
  1778 		return &_oil_function_impl_clamphigh_s8_trick;
  1779 }
  1780 #endif
  1781 
  1782 #ifdef	__SYMBIAN32__
  1783  
  1784 OilFunctionImpl* __oil_function_impl_clamphigh_u8_trick() {
  1785 		return &_oil_function_impl_clamphigh_u8_trick;
  1786 }
  1787 #endif
  1788 
  1789 #ifdef	__SYMBIAN32__
  1790  
  1791 OilFunctionImpl* __oil_function_impl_clamphigh_s16_trick() {
  1792 		return &_oil_function_impl_clamphigh_s16_trick;
  1793 }
  1794 #endif
  1795 
  1796 #ifdef	__SYMBIAN32__
  1797  
  1798 OilFunctionImpl* __oil_function_impl_clamphigh_u16_trick() {
  1799 		return &_oil_function_impl_clamphigh_u16_trick;
  1800 }
  1801 #endif
  1802 
  1803 #ifdef	__SYMBIAN32__
  1804  
  1805 OilFunctionImpl* __oil_function_impl_clamplow_s8_pointer() {
  1806 		return &_oil_function_impl_clamplow_s8_pointer;
  1807 }
  1808 #endif
  1809 
  1810 #ifdef	__SYMBIAN32__
  1811  
  1812 OilFunctionImpl* __oil_function_impl_clamplow_u8_pointer() {
  1813 		return &_oil_function_impl_clamplow_u8_pointer;
  1814 }
  1815 #endif
  1816 
  1817 #ifdef	__SYMBIAN32__
  1818  
  1819 OilFunctionImpl* __oil_function_impl_clamplow_s16_pointer() {
  1820 		return &_oil_function_impl_clamplow_s16_pointer;
  1821 }
  1822 #endif
  1823 
  1824 #ifdef	__SYMBIAN32__
  1825  
  1826 OilFunctionImpl* __oil_function_impl_clamplow_u16_pointer() {
  1827 		return &_oil_function_impl_clamplow_u16_pointer;
  1828 }
  1829 #endif
  1830 
  1831 #ifdef	__SYMBIAN32__
  1832  
  1833 OilFunctionImpl* __oil_function_impl_clamplow_s32_pointer() {
  1834 		return &_oil_function_impl_clamplow_s32_pointer;
  1835 }
  1836 #endif
  1837 
  1838 #ifdef	__SYMBIAN32__
  1839  
  1840 OilFunctionImpl* __oil_function_impl_clamplow_u32_pointer() {
  1841 		return &_oil_function_impl_clamplow_u32_pointer;
  1842 }
  1843 #endif
  1844 
  1845 #ifdef	__SYMBIAN32__
  1846  
  1847 OilFunctionImpl* __oil_function_impl_clamplow_s8_unroll4() {
  1848 		return &_oil_function_impl_clamplow_s8_unroll4;
  1849 }
  1850 #endif
  1851 
  1852 #ifdef	__SYMBIAN32__
  1853  
  1854 OilFunctionImpl* __oil_function_impl_clamplow_u8_unroll4() {
  1855 		return &_oil_function_impl_clamplow_u8_unroll4;
  1856 }
  1857 #endif
  1858 
  1859 #ifdef	__SYMBIAN32__
  1860  
  1861 OilFunctionImpl* __oil_function_impl_clamplow_s16_unroll4() {
  1862 		return &_oil_function_impl_clamplow_s16_unroll4;
  1863 }
  1864 #endif
  1865 
  1866 #ifdef	__SYMBIAN32__
  1867  
  1868 OilFunctionImpl* __oil_function_impl_clamplow_u16_unroll4() {
  1869 		return &_oil_function_impl_clamplow_u16_unroll4;
  1870 }
  1871 #endif
  1872 
  1873 #ifdef	__SYMBIAN32__
  1874  
  1875 OilFunctionImpl* __oil_function_impl_clamplow_s32_unroll4() {
  1876 		return &_oil_function_impl_clamplow_s32_unroll4;
  1877 }
  1878 #endif
  1879 
  1880 #ifdef	__SYMBIAN32__
  1881  
  1882 OilFunctionImpl* __oil_function_impl_clamplow_u32_unroll4() {
  1883 		return &_oil_function_impl_clamplow_u32_unroll4;
  1884 }
  1885 #endif
  1886 
  1887 #ifdef	__SYMBIAN32__
  1888  
  1889 OilFunctionImpl* __oil_function_impl_clamplow_s8_trick() {
  1890 		return &_oil_function_impl_clamplow_s8_trick;
  1891 }
  1892 #endif
  1893 
  1894 #ifdef	__SYMBIAN32__
  1895  
  1896 OilFunctionImpl* __oil_function_impl_clamplow_u8_trick() {
  1897 		return &_oil_function_impl_clamplow_u8_trick;
  1898 }
  1899 #endif
  1900 
  1901 #ifdef	__SYMBIAN32__
  1902  
  1903 OilFunctionImpl* __oil_function_impl_clamplow_s16_trick() {
  1904 		return &_oil_function_impl_clamplow_s16_trick;
  1905 }
  1906 #endif
  1907 
  1908 #ifdef	__SYMBIAN32__
  1909  
  1910 OilFunctionImpl* __oil_function_impl_clamplow_u16_trick() {
  1911 		return &_oil_function_impl_clamplow_u16_trick;
  1912 }
  1913 #endif
  1914