1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/liboil/src/clamp.c Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,947 @@
1.4 +/*
1.5 + * Copyright (c) 2005
1.6 + * Eric Anholt. All rights reserved.
1.7 + *
1.8 + * Redistribution and use in source and binary forms, with or without
1.9 + * modification, are permitted provided that the following conditions
1.10 + * are met:
1.11 + * 1. Redistributions of source code must retain the above copyright
1.12 + * notice, this list of conditions and the following disclaimer.
1.13 + * 2. Redistributions in binary form must reproduce the above copyright
1.14 + * notice, this list of conditions and the following disclaimer in the
1.15 + * documentation and/or other materials provided with the distribution.
1.16 + *
1.17 + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
1.18 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.19 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.20 + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
1.21 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.22 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1.23 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.24 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.25 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.26 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.27 + * SUCH DAMAGE.
1.28 + */
1.29 +//Portions Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
1.30 +
1.31 +#ifdef HAVE_CONFIG_H
1.32 +#include "config.h"
1.33 +#endif
1.34 +
1.35 +#include <liboil/liboilfunction.h>
1.36 +#include <liboil/liboiltest.h>
1.37 +
1.38 +#define CLAMP_DEFINE_REF(type) \
1.39 +static void clamp_ ## type ## _ref ( \
1.40 + oil_type_ ## type *dest, \
1.41 + const oil_type_ ## type *src, \
1.42 + int n, \
1.43 + const oil_type_ ## type *min, \
1.44 + const oil_type_ ## type *max) \
1.45 +{ \
1.46 + int i; \
1.47 + oil_type_ ## type x; \
1.48 + for (i = 0; i < n; i++) { \
1.49 + x = src[i]; \
1.50 + if (x < *min) \
1.51 + x = *min; \
1.52 + if (x > *max) \
1.53 + x = *max; \
1.54 + dest[i] = x; \
1.55 + } \
1.56 +} \
1.57 +static void clamp_ ## type ## _test (OilTest *test) \
1.58 +{ \
1.59 + oil_type_ ## type *lo = (oil_type_ ## type *) \
1.60 + (test->params[OIL_ARG_SRC2].src_data + \
1.61 + test->params[OIL_ARG_SRC2].test_header); \
1.62 + oil_type_ ## type *hi = (oil_type_ ## type *) \
1.63 + (test->params[OIL_ARG_SRC3].src_data + \
1.64 + test->params[OIL_ARG_SRC3].test_header); \
1.65 + if (*lo > *hi) { \
1.66 + oil_type_ ## type tmp; \
1.67 + tmp = *lo; \
1.68 + *lo = *hi; \
1.69 + *hi = tmp; \
1.70 + } \
1.71 +} \
1.72 +OIL_DEFINE_CLASS_FULL(clamp_ ## type, \
1.73 + "oil_type_" #type " *dest, " \
1.74 + "oil_type_" #type " *src, " \
1.75 + "int n, " \
1.76 + "oil_type_" #type " *s2_1, " \
1.77 + "oil_type_" #type " *s3_1", \
1.78 + clamp_ ## type ## _test); \
1.79 +OIL_DEFINE_IMPL_REF(clamp_ ## type ## _ref, clamp_ ## type)
1.80 +
1.81 +CLAMP_DEFINE_REF (s8);
1.82 +CLAMP_DEFINE_REF (u8);
1.83 +CLAMP_DEFINE_REF (s16);
1.84 +CLAMP_DEFINE_REF (u16);
1.85 +CLAMP_DEFINE_REF (s32);
1.86 +CLAMP_DEFINE_REF (u32);
1.87 +CLAMP_DEFINE_REF (f32);
1.88 +CLAMP_DEFINE_REF (f64);
1.89 +
1.90 +
1.91 +
1.92 +/**
1.93 + * oil_clamp_s8:
1.94 + * @dest:
1.95 + * @src:
1.96 + * @n:
1.97 + * @s2_1:
1.98 + * @s3_1:
1.99 + *
1.100 + * Clamps each value in @src to the range [@s2_1,@s3_1] and places
1.101 + * the result in @dest.
1.102 + */
1.103 +
1.104 +/**
1.105 + * oil_clamp_u8:
1.106 + * @dest:
1.107 + * @src:
1.108 + * @n:
1.109 + * @s2_1:
1.110 + * @s3_1:
1.111 + *
1.112 + * Clamps each value in @src to the range [@s2_1,@s3_1] and places
1.113 + * the result in @dest.
1.114 + */
1.115 +
1.116 +/**
1.117 + * oil_clamp_s16:
1.118 + * @dest:
1.119 + * @src:
1.120 + * @n:
1.121 + * @s2_1:
1.122 + * @s3_1:
1.123 + *
1.124 + * Clamps each value in @src to the range [@s2_1,@s3_1] and places
1.125 + * the result in @dest.
1.126 + */
1.127 +
1.128 +/**
1.129 + * oil_clamp_u16:
1.130 + * @dest:
1.131 + * @src:
1.132 + * @n:
1.133 + * @s2_1:
1.134 + * @s3_1:
1.135 + *
1.136 + * Clamps each value in @src to the range [@s2_1,@s3_1] and places
1.137 + * the result in @dest.
1.138 + */
1.139 +
1.140 +/**
1.141 + * oil_clamp_s32:
1.142 + * @dest:
1.143 + * @src:
1.144 + * @n:
1.145 + * @s2_1:
1.146 + * @s3_1:
1.147 + *
1.148 + * Clamps each value in @src to the range [@s2_1,@s3_1] and places
1.149 + * the result in @dest.
1.150 + */
1.151 +
1.152 +/**
1.153 + * oil_clamp_u32:
1.154 + * @dest:
1.155 + * @src:
1.156 + * @n:
1.157 + * @s2_1:
1.158 + * @s3_1:
1.159 + *
1.160 + * Clamps each value in @src to the range [@s2_1,@s3_1] and places
1.161 + * the result in @dest.
1.162 + */
1.163 +
1.164 +/**
1.165 + * oil_clamp_f32:
1.166 + * @dest:
1.167 + * @src:
1.168 + * @n:
1.169 + * @s2_1:
1.170 + * @s3_1:
1.171 + *
1.172 + * Clamps each value in @src to the range [@s2_1,@s3_1] and places
1.173 + * the result in @dest.
1.174 + */
1.175 +
1.176 +/**
1.177 + * oil_clamp_f64:
1.178 + * @dest:
1.179 + * @src:
1.180 + * @n:
1.181 + * @s2_1:
1.182 + * @s3_1:
1.183 + *
1.184 + * Clamps each value in @src to the range [@s2_1,@s3_1] and places
1.185 + * the result in @dest.
1.186 + */
1.187 +
1.188 +#define CLAMPLOW_DEFINE_REF(type) \
1.189 +static void clamplow_ ## type ## _ref ( \
1.190 + oil_type_ ## type *dest, \
1.191 + const oil_type_ ## type *src, \
1.192 + int n, \
1.193 + const oil_type_ ## type *min) \
1.194 +{ \
1.195 + int i; \
1.196 + oil_type_ ## type x; \
1.197 + for (i = 0; i < n; i++) { \
1.198 + x = src[i]; \
1.199 + if (x < *min) \
1.200 + x = *min; \
1.201 + dest[i] = x; \
1.202 + } \
1.203 +} \
1.204 +OIL_DEFINE_CLASS(clamplow_ ## type, \
1.205 + "oil_type_" #type " *dest, " \
1.206 + "oil_type_" #type " *src, " \
1.207 + "int n, " \
1.208 + "oil_type_" #type " *s2_1"); \
1.209 +OIL_DEFINE_IMPL_REF(clamplow_ ## type ## _ref, clamplow_ ## type)
1.210 +
1.211 +CLAMPLOW_DEFINE_REF (s8);
1.212 +CLAMPLOW_DEFINE_REF (u8);
1.213 +CLAMPLOW_DEFINE_REF (s16);
1.214 +CLAMPLOW_DEFINE_REF (u16);
1.215 +CLAMPLOW_DEFINE_REF (s32);
1.216 +CLAMPLOW_DEFINE_REF (u32);
1.217 +CLAMPLOW_DEFINE_REF (f32);
1.218 +CLAMPLOW_DEFINE_REF (f64);
1.219 +
1.220 +/**
1.221 + * oil_clamplow_s8:
1.222 + * @dest:
1.223 + * @src:
1.224 + * @n:
1.225 + * @s2_1:
1.226 + *
1.227 + * Clamps each value in @src to a lower bound of @s2_1 and places the result in
1.228 + * @dest.
1.229 + */
1.230 +
1.231 +
1.232 +/**
1.233 + * oil_clamplow_u8:
1.234 + * @dest:
1.235 + * @src:
1.236 + * @n:
1.237 + * @s2_1:
1.238 + *
1.239 + * Clamps each value in @src to a lower bound of @s2_1 and places the result in
1.240 + * @dest.
1.241 + */
1.242 +
1.243 +/**
1.244 + * oil_clamplow_s16:
1.245 + * @dest:
1.246 + * @src:
1.247 + * @n:
1.248 + * @s2_1:
1.249 + *
1.250 + * Clamps each value in @src to a lower bound of @s2_1 and places the result in
1.251 + * @dest.
1.252 + */
1.253 +
1.254 +
1.255 +/**
1.256 + * oil_clamplow_u16:
1.257 + * @dest:
1.258 + * @src:
1.259 + * @n:
1.260 + * @s2_1:
1.261 + *
1.262 + * Clamps each value in @src to a lower bound of @s2_1 and places the result in
1.263 + * @dest.
1.264 + */
1.265 +
1.266 +/**
1.267 + * oil_clamplow_s32:
1.268 + * @dest:
1.269 + * @src:
1.270 + * @n:
1.271 + * @s2_1:
1.272 + *
1.273 + * Clamps each value in @src to a lower bound of @s2_1 and places the result in
1.274 + * @dest.
1.275 + */
1.276 +
1.277 +
1.278 +/**
1.279 + * oil_clamplow_u32:
1.280 + * @dest:
1.281 + * @src:
1.282 + * @n:
1.283 + * @s2_1:
1.284 + *
1.285 + * Clamps each value in @src to a lower bound of @s2_1 and places the result in
1.286 + * @dest.
1.287 + */
1.288 +
1.289 +/**
1.290 + * oil_clamplow_f32:
1.291 + * @dest:
1.292 + * @src:
1.293 + * @n:
1.294 + * @s2_1:
1.295 + *
1.296 + * Clamps each value in @src to a lower bound of @s2_1 and places the result in
1.297 + * @dest.
1.298 + */
1.299 +
1.300 +
1.301 +/**
1.302 + * oil_clamplow_f64:
1.303 + * @dest:
1.304 + * @src:
1.305 + * @n:
1.306 + * @s2_1:
1.307 + *
1.308 + * Clamps each value in @src to a lower bound of @s2_1 and places the result in
1.309 + * @dest.
1.310 + */
1.311 +
1.312 +#define CLAMPHIGH_DEFINE_REF(type) \
1.313 +static void clamphigh_ ## type ## _ref ( \
1.314 + oil_type_ ## type *dest, \
1.315 + const oil_type_ ## type *src, \
1.316 + int n, \
1.317 + const oil_type_ ## type *max) \
1.318 +{ \
1.319 + int i; \
1.320 + oil_type_ ## type x; \
1.321 + for (i = 0; i < n; i++) { \
1.322 + x = src[i]; \
1.323 + if (x > *max) \
1.324 + x = *max; \
1.325 + dest[i] = x; \
1.326 + } \
1.327 +} \
1.328 +OIL_DEFINE_CLASS(clamphigh_ ## type, \
1.329 + "oil_type_" #type " *dest, " \
1.330 + "oil_type_" #type " *src, " \
1.331 + "int n, " \
1.332 + "oil_type_" #type " *s2_1"); \
1.333 +OIL_DEFINE_IMPL_REF(clamphigh_ ## type ## _ref, clamphigh_ ## type)
1.334 +
1.335 +CLAMPHIGH_DEFINE_REF (s8);
1.336 +CLAMPHIGH_DEFINE_REF (u8);
1.337 +CLAMPHIGH_DEFINE_REF (s16);
1.338 +CLAMPHIGH_DEFINE_REF (u16);
1.339 +CLAMPHIGH_DEFINE_REF (s32);
1.340 +CLAMPHIGH_DEFINE_REF (u32);
1.341 +CLAMPHIGH_DEFINE_REF (f32);
1.342 +CLAMPHIGH_DEFINE_REF (f64);
1.343 +
1.344 +#ifdef __SYMBIAN32__
1.345 +
1.346 +OilFunctionClass* __oil_function_class_clamp_s8() {
1.347 + return &_oil_function_class_clamp_s8;
1.348 +}
1.349 +#endif
1.350 +
1.351 +#ifdef __SYMBIAN32__
1.352 +
1.353 +OilFunctionClass* __oil_function_class_clamp_u8() {
1.354 + return &_oil_function_class_clamp_u8;
1.355 +}
1.356 +#endif
1.357 +
1.358 +#ifdef __SYMBIAN32__
1.359 +
1.360 +OilFunctionClass* __oil_function_class_clamp_s16() {
1.361 + return &_oil_function_class_clamp_s16;
1.362 +}
1.363 +#endif
1.364 +#ifdef __SYMBIAN32__
1.365 +
1.366 +OilFunctionClass* __oil_function_class_clamp_u16() {
1.367 + return &_oil_function_class_clamp_u16;
1.368 +}
1.369 +#endif
1.370 +#ifdef __SYMBIAN32__
1.371 +
1.372 +OilFunctionClass* __oil_function_class_clamp_s32() {
1.373 + return &_oil_function_class_clamp_s32;
1.374 +}
1.375 +#endif
1.376 +#ifdef __SYMBIAN32__
1.377 +
1.378 +OilFunctionClass* __oil_function_class_clamp_u32() {
1.379 + return &_oil_function_class_clamp_u32;
1.380 +}
1.381 +#endif
1.382 +#ifdef __SYMBIAN32__
1.383 +
1.384 +OilFunctionClass* __oil_function_class_clamp_f32() {
1.385 + return &_oil_function_class_clamp_f32;
1.386 +}
1.387 +#endif
1.388 +#ifdef __SYMBIAN32__
1.389 +
1.390 +OilFunctionClass* __oil_function_class_clamp_f64() {
1.391 + return &_oil_function_class_clamp_f64;
1.392 +}
1.393 +#endif
1.394 +
1.395 +
1.396 +#ifdef __SYMBIAN32__
1.397 +
1.398 +OilFunctionClass* __oil_function_class_clamphigh_s8() {
1.399 + return &_oil_function_class_clamp_s8;
1.400 +}
1.401 +#endif
1.402 +
1.403 +#ifdef __SYMBIAN32__
1.404 +
1.405 +OilFunctionClass* __oil_function_class_clamphigh_u8() {
1.406 + return &_oil_function_class_clamp_u8;
1.407 +}
1.408 +#endif
1.409 +
1.410 +#ifdef __SYMBIAN32__
1.411 +
1.412 +OilFunctionClass* __oil_function_class_clamphigh_s16() {
1.413 + return &_oil_function_class_clamp_s16;
1.414 +}
1.415 +#endif
1.416 +#ifdef __SYMBIAN32__
1.417 +
1.418 +OilFunctionClass* __oil_function_class_clamphigh_u16() {
1.419 + return &_oil_function_class_clamp_u16;
1.420 +}
1.421 +#endif
1.422 +#ifdef __SYMBIAN32__
1.423 +
1.424 +OilFunctionClass* __oil_function_class_clamphigh_s32() {
1.425 + return &_oil_function_class_clamp_s32;
1.426 +}
1.427 +#endif
1.428 +#ifdef __SYMBIAN32__
1.429 +
1.430 +OilFunctionClass* __oil_function_class_clamphigh_u32() {
1.431 + return &_oil_function_class_clamp_u32;
1.432 +}
1.433 +#endif
1.434 +#ifdef __SYMBIAN32__
1.435 +
1.436 +OilFunctionClass* __oil_function_class_clamphigh_f32() {
1.437 + return &_oil_function_class_clamp_f32;
1.438 +}
1.439 +#endif
1.440 +#ifdef __SYMBIAN32__
1.441 +
1.442 +OilFunctionClass* __oil_function_class_clamphigh_f64() {
1.443 + return &_oil_function_class_clamp_f64;
1.444 +}
1.445 +#endif
1.446 +
1.447 +
1.448 +
1.449 +
1.450 +#ifdef __SYMBIAN32__
1.451 +
1.452 +OilFunctionClass* __oil_function_class_clamplow_s8() {
1.453 + return &_oil_function_class_clamplow_s8;
1.454 +}
1.455 +#endif
1.456 +
1.457 +#ifdef __SYMBIAN32__
1.458 +
1.459 +OilFunctionClass* __oil_function_class_clamplow_u8() {
1.460 + return &_oil_function_class_clamplow_u8;
1.461 +}
1.462 +#endif
1.463 +
1.464 +#ifdef __SYMBIAN32__
1.465 +
1.466 +OilFunctionClass* __oil_function_class_clamplow_s16() {
1.467 + return &_oil_function_class_clamplow_s16;
1.468 +}
1.469 +#endif
1.470 +#ifdef __SYMBIAN32__
1.471 +
1.472 +OilFunctionClass* __oil_function_class_clamplow_u16() {
1.473 + return &_oil_function_class_clamplow_u16;
1.474 +}
1.475 +#endif
1.476 +#ifdef __SYMBIAN32__
1.477 +
1.478 +OilFunctionClass* __oil_function_class_clamplow_s32() {
1.479 + return &_oil_function_class_clamplow_s32;
1.480 +}
1.481 +#endif
1.482 +#ifdef __SYMBIAN32__
1.483 +
1.484 +OilFunctionClass* __oil_function_class_clamplow_u32() {
1.485 + return &_oil_function_class_clamplow_u32;
1.486 +}
1.487 +#endif
1.488 +#ifdef __SYMBIAN32__
1.489 +
1.490 +OilFunctionClass* __oil_function_class_clamplow_f32() {
1.491 + return &_oil_function_class_clamplow_f32;
1.492 +}
1.493 +#endif
1.494 +#ifdef __SYMBIAN32__
1.495 +
1.496 +OilFunctionClass* __oil_function_class_clamplow_f64() {
1.497 + return &_oil_function_class_clamplow_f64;
1.498 +}
1.499 +#endif
1.500 +/**
1.501 + * oil_clamphigh_s8:
1.502 + * @dest:
1.503 + * @src:
1.504 + * @n:
1.505 + * @s2_1:
1.506 + *
1.507 + * Clamps each value in @src to an upper bound of @s2_1 and places the result in
1.508 + * @dest.
1.509 + */
1.510 +
1.511 +/**
1.512 + * oil_clamphigh_u8:
1.513 + * @dest:
1.514 + * @src:
1.515 + * @n:
1.516 + * @s2_1:
1.517 + *
1.518 + * Clamps each value in @src to an upper bound of @s2_1 and places the result in
1.519 + * @dest.
1.520 + */
1.521 +
1.522 +/**
1.523 + * oil_clamphigh_s16:
1.524 + * @dest:
1.525 + * @src:
1.526 + * @n:
1.527 + * @s2_1:
1.528 + *
1.529 + * Clamps each value in @src to an upper bound of @s2_1 and places the result in
1.530 + * @dest.
1.531 + */
1.532 +
1.533 +/**
1.534 + * oil_clamphigh_u16:
1.535 + * @dest:
1.536 + * @src:
1.537 + * @n:
1.538 + * @s2_1:
1.539 + *
1.540 + * Clamps each value in @src to an upper bound of @s2_1 and places the result in
1.541 + * @dest.
1.542 + */
1.543 +
1.544 +/**
1.545 + * oil_clamphigh_s32:
1.546 + * @dest:
1.547 + * @src:
1.548 + * @n:
1.549 + * @s2_1:
1.550 + *
1.551 + * Clamps each value in @src to an upper bound of @s2_1 and places the result in
1.552 + * @dest.
1.553 + */
1.554 +
1.555 +/**
1.556 + * oil_clamphigh_u32:
1.557 + * @dest:
1.558 + * @src:
1.559 + * @n:
1.560 + * @s2_1:
1.561 + *
1.562 + * Clamps each value in @src to an upper bound of @s2_1 and places the result in
1.563 + * @dest.
1.564 + */
1.565 +
1.566 +/**
1.567 + * oil_clamphigh_f32:
1.568 + * @dest:
1.569 + * @src:
1.570 + * @n:
1.571 + * @s2_1:
1.572 + *
1.573 + * Clamps each value in @src to an upper bound of @s2_1 and places the result in
1.574 + * @dest.
1.575 + */
1.576 +
1.577 +/**
1.578 + * oil_clamphigh_f64:
1.579 + * @dest:
1.580 + * @src:
1.581 + * @n:
1.582 + * @s2_1:
1.583 + *
1.584 + * Clamps each value in @src to an upper bound of @s2_1 and places the result in
1.585 + * @dest.
1.586 + */
1.587 +
1.588 +
1.589 +#ifdef __SYMBIAN32__
1.590 +
1.591 +OilFunctionImpl* __oil_function_impl_clamp_s8_ref() {
1.592 + return &_oil_function_impl_clamp_s8_ref;
1.593 +}
1.594 +#endif
1.595 +
1.596 +#ifdef __SYMBIAN32__
1.597 +
1.598 +OilFunctionImpl* __oil_function_impl_clamp_u8_ref() {
1.599 + return &_oil_function_impl_clamp_u8_ref;
1.600 +}
1.601 +#endif
1.602 +
1.603 +#ifdef __SYMBIAN32__
1.604 +
1.605 +OilFunctionImpl* __oil_function_impl_clamp_s16_ref() {
1.606 + return &_oil_function_impl_clamp_s16_ref;
1.607 +}
1.608 +#endif
1.609 +
1.610 +#ifdef __SYMBIAN32__
1.611 +
1.612 +OilFunctionImpl* __oil_function_impl_clamp_u16_ref() {
1.613 + return &_oil_function_impl_clamp_u16_ref;
1.614 +}
1.615 +#endif
1.616 +
1.617 +#ifdef __SYMBIAN32__
1.618 +
1.619 +OilFunctionImpl* __oil_function_impl_clamp_s32_ref() {
1.620 + return &_oil_function_impl_clamp_s32_ref;
1.621 +}
1.622 +#endif
1.623 +
1.624 +#ifdef __SYMBIAN32__
1.625 +
1.626 +OilFunctionImpl* __oil_function_impl_clamp_u32_ref() {
1.627 + return &_oil_function_impl_clamp_u32_ref;
1.628 +}
1.629 +#endif
1.630 +
1.631 +#ifdef __SYMBIAN32__
1.632 +
1.633 +OilFunctionImpl* __oil_function_impl_clamp_f32_ref() {
1.634 + return &_oil_function_impl_clamp_f32_ref;
1.635 +}
1.636 +#endif
1.637 +
1.638 +#ifdef __SYMBIAN32__
1.639 +
1.640 +OilFunctionImpl* __oil_function_impl_clamp_f64_ref() {
1.641 + return &_oil_function_impl_clamp_f64_ref;
1.642 +}
1.643 +#endif
1.644 +
1.645 +#ifdef __SYMBIAN32__
1.646 +
1.647 +OilFunctionImpl* __oil_function_impl_clamplow_s8_ref() {
1.648 + return &_oil_function_impl_clamplow_s8_ref;
1.649 +}
1.650 +#endif
1.651 +
1.652 +#ifdef __SYMBIAN32__
1.653 +
1.654 +OilFunctionImpl* __oil_function_impl_clamplow_u8_ref() {
1.655 + return &_oil_function_impl_clamplow_u8_ref;
1.656 +}
1.657 +#endif
1.658 +
1.659 +#ifdef __SYMBIAN32__
1.660 +
1.661 +OilFunctionImpl* __oil_function_impl_clamplow_s16_ref() {
1.662 + return &_oil_function_impl_clamplow_s16_ref;
1.663 +}
1.664 +#endif
1.665 +
1.666 +#ifdef __SYMBIAN32__
1.667 +
1.668 +OilFunctionImpl* __oil_function_impl_clamplow_u16_ref() {
1.669 + return &_oil_function_impl_clamplow_u16_ref;
1.670 +}
1.671 +#endif
1.672 +
1.673 +#ifdef __SYMBIAN32__
1.674 +
1.675 +OilFunctionImpl* __oil_function_impl_clamplow_s32_ref() {
1.676 + return &_oil_function_impl_clamplow_s32_ref;
1.677 +}
1.678 +#endif
1.679 +
1.680 +#ifdef __SYMBIAN32__
1.681 +
1.682 +OilFunctionImpl* __oil_function_impl_clamplow_u32_ref() {
1.683 + return &_oil_function_impl_clamplow_u32_ref;
1.684 +}
1.685 +#endif
1.686 +
1.687 +#ifdef __SYMBIAN32__
1.688 +
1.689 +OilFunctionImpl* __oil_function_impl_clamplow_f32_ref() {
1.690 + return &_oil_function_impl_clamplow_f32_ref;
1.691 +}
1.692 +#endif
1.693 +
1.694 +#ifdef __SYMBIAN32__
1.695 +
1.696 +OilFunctionImpl* __oil_function_impl_clamplow_f64_ref() {
1.697 + return &_oil_function_impl_clamplow_f64_ref;
1.698 +}
1.699 +#endif
1.700 +
1.701 +#ifdef __SYMBIAN32__
1.702 +
1.703 +OilFunctionImpl* __oil_function_impl_clamphigh_s8_ref() {
1.704 + return &_oil_function_impl_clamphigh_s8_ref;
1.705 +}
1.706 +#endif
1.707 +
1.708 +#ifdef __SYMBIAN32__
1.709 +
1.710 +OilFunctionImpl* __oil_function_impl_clamphigh_u8_ref() {
1.711 + return &_oil_function_impl_clamphigh_u8_ref;
1.712 +}
1.713 +#endif
1.714 +
1.715 +#ifdef __SYMBIAN32__
1.716 +
1.717 +OilFunctionImpl* __oil_function_impl_clamphigh_s16_ref() {
1.718 + return &_oil_function_impl_clamphigh_s16_ref;
1.719 +}
1.720 +#endif
1.721 +
1.722 +#ifdef __SYMBIAN32__
1.723 +
1.724 +OilFunctionImpl* __oil_function_impl_clamphigh_u16_ref() {
1.725 + return &_oil_function_impl_clamphigh_u16_ref;
1.726 +}
1.727 +#endif
1.728 +
1.729 +#ifdef __SYMBIAN32__
1.730 +
1.731 +OilFunctionImpl* __oil_function_impl_clamphigh_s32_ref() {
1.732 + return &_oil_function_impl_clamphigh_s32_ref;
1.733 +}
1.734 +#endif
1.735 +
1.736 +#ifdef __SYMBIAN32__
1.737 +
1.738 +OilFunctionImpl* __oil_function_impl_clamphigh_u32_ref() {
1.739 + return &_oil_function_impl_clamphigh_u32_ref;
1.740 +}
1.741 +#endif
1.742 +
1.743 +#ifdef __SYMBIAN32__
1.744 +
1.745 +OilFunctionImpl* __oil_function_impl_clamphigh_f32_ref() {
1.746 + return &_oil_function_impl_clamphigh_f32_ref;
1.747 +}
1.748 +#endif
1.749 +
1.750 +#ifdef __SYMBIAN32__
1.751 +
1.752 +OilFunctionImpl* __oil_function_impl_clamphigh_f64_ref() {
1.753 + return &_oil_function_impl_clamphigh_f64_ref;
1.754 +}
1.755 +#endif
1.756 +
1.757 +
1.758 +
1.759 +#ifdef __SYMBIAN32__
1.760 +
1.761 +EXPORT_C void** _oil_function_class_ptr_clamp_s8 () {
1.762 + oil_function_class_ptr_clamp_s8 = __oil_function_class_clamp_s8();
1.763 + return &oil_function_class_ptr_clamp_s8->func;
1.764 + }
1.765 +#endif
1.766 +
1.767 +#ifdef __SYMBIAN32__
1.768 +
1.769 +EXPORT_C void** _oil_function_class_ptr_clamp_u8 () {
1.770 + oil_function_class_ptr_clamp_u8 = __oil_function_class_clamp_u8();
1.771 + return &oil_function_class_ptr_clamp_u8->func;
1.772 + }
1.773 +#endif
1.774 +
1.775 +#ifdef __SYMBIAN32__
1.776 +
1.777 +EXPORT_C void** _oil_function_class_ptr_clamp_s16 () {
1.778 + oil_function_class_ptr_clamp_s16 = __oil_function_class_clamp_s16();
1.779 + return &oil_function_class_ptr_clamp_s16->func;
1.780 + }
1.781 +#endif
1.782 +
1.783 +#ifdef __SYMBIAN32__
1.784 +
1.785 +EXPORT_C void** _oil_function_class_ptr_clamp_u16 () {
1.786 + oil_function_class_ptr_clamp_u16 = __oil_function_class_clamp_u16();
1.787 + return &oil_function_class_ptr_clamp_u16->func;
1.788 + }
1.789 +#endif
1.790 +
1.791 +#ifdef __SYMBIAN32__
1.792 +
1.793 +EXPORT_C void** _oil_function_class_ptr_clamp_s32 () {
1.794 + oil_function_class_ptr_clamp_s32 = __oil_function_class_clamp_s32();
1.795 + return &oil_function_class_ptr_clamp_s32->func;
1.796 + }
1.797 +#endif
1.798 +
1.799 +#ifdef __SYMBIAN32__
1.800 +
1.801 +EXPORT_C void** _oil_function_class_ptr_clamp_u32 () {
1.802 + oil_function_class_ptr_clamp_u32 = __oil_function_class_clamp_u32();
1.803 + return &oil_function_class_ptr_clamp_u32->func;
1.804 + }
1.805 +#endif
1.806 +
1.807 +#ifdef __SYMBIAN32__
1.808 +
1.809 +EXPORT_C void** _oil_function_class_ptr_clamp_f32 () {
1.810 + oil_function_class_ptr_clamp_f32 = __oil_function_class_clamp_f32();
1.811 + return &oil_function_class_ptr_clamp_f32->func;
1.812 + }
1.813 +#endif
1.814 +
1.815 +#ifdef __SYMBIAN32__
1.816 +
1.817 +EXPORT_C void** _oil_function_class_ptr_clamp_f64 () {
1.818 + oil_function_class_ptr_clamp_f64 = __oil_function_class_clamp_f64();
1.819 + return &oil_function_class_ptr_clamp_f64->func;
1.820 + }
1.821 +#endif
1.822 +
1.823 +#ifdef __SYMBIAN32__
1.824 +
1.825 +EXPORT_C void** _oil_function_class_ptr_clamphigh_s8 () {
1.826 + oil_function_class_ptr_clamphigh_s8 = __oil_function_class_clamphigh_s8();
1.827 + return &oil_function_class_ptr_clamphigh_s8->func;
1.828 + }
1.829 +#endif
1.830 +
1.831 +#ifdef __SYMBIAN32__
1.832 +
1.833 +EXPORT_C void** _oil_function_class_ptr_clamphigh_u8 () {
1.834 + oil_function_class_ptr_clamphigh_u8 = __oil_function_class_clamphigh_u8();
1.835 + return &oil_function_class_ptr_clamphigh_u8->func;
1.836 + }
1.837 +#endif
1.838 +
1.839 +#ifdef __SYMBIAN32__
1.840 +
1.841 +EXPORT_C void** _oil_function_class_ptr_clamphigh_s16 () {
1.842 + oil_function_class_ptr_clamphigh_s16 = __oil_function_class_clamphigh_s16();
1.843 + return &oil_function_class_ptr_clamphigh_s16->func;
1.844 + }
1.845 +#endif
1.846 +
1.847 +#ifdef __SYMBIAN32__
1.848 +
1.849 +EXPORT_C void** _oil_function_class_ptr_clamphigh_u16 () {
1.850 + oil_function_class_ptr_clamphigh_u16 = __oil_function_class_clamphigh_u16();
1.851 + return &oil_function_class_ptr_clamphigh_u16->func;
1.852 + }
1.853 +#endif
1.854 +
1.855 +#ifdef __SYMBIAN32__
1.856 +
1.857 +EXPORT_C void** _oil_function_class_ptr_clamphigh_s32 () {
1.858 + oil_function_class_ptr_clamphigh_s32 = __oil_function_class_clamphigh_s32();
1.859 + return &oil_function_class_ptr_clamphigh_s32->func;
1.860 + }
1.861 +#endif
1.862 +
1.863 +#ifdef __SYMBIAN32__
1.864 +
1.865 +EXPORT_C void** _oil_function_class_ptr_clamphigh_u32 () {
1.866 + oil_function_class_ptr_clamphigh_u32 = __oil_function_class_clamphigh_u32();
1.867 + return &oil_function_class_ptr_clamphigh_u32->func;
1.868 + }
1.869 +#endif
1.870 +
1.871 +#ifdef __SYMBIAN32__
1.872 +
1.873 +EXPORT_C void** _oil_function_class_ptr_clamphigh_f32 () {
1.874 + oil_function_class_ptr_clamphigh_f32 = __oil_function_class_clamphigh_f32();
1.875 + return &oil_function_class_ptr_clamphigh_f32->func;
1.876 + }
1.877 +#endif
1.878 +
1.879 +#ifdef __SYMBIAN32__
1.880 +
1.881 +EXPORT_C void** _oil_function_class_ptr_clamphigh_f64 () {
1.882 + oil_function_class_ptr_clamphigh_f64 = __oil_function_class_clamphigh_f64();
1.883 + return &oil_function_class_ptr_clamphigh_f64->func;
1.884 + }
1.885 +#endif
1.886 +
1.887 +#ifdef __SYMBIAN32__
1.888 +
1.889 +EXPORT_C void** _oil_function_class_ptr_clamplow_s8 () {
1.890 + oil_function_class_ptr_clamplow_s8 = __oil_function_class_clamplow_s8();
1.891 + return &oil_function_class_ptr_clamplow_s8->func;
1.892 + }
1.893 +#endif
1.894 +
1.895 +#ifdef __SYMBIAN32__
1.896 +
1.897 +EXPORT_C void** _oil_function_class_ptr_clamplow_u8 () {
1.898 + oil_function_class_ptr_clamplow_u8 = __oil_function_class_clamplow_u8();
1.899 + return &oil_function_class_ptr_clamplow_u8->func;
1.900 + }
1.901 +#endif
1.902 +
1.903 +#ifdef __SYMBIAN32__
1.904 +
1.905 +EXPORT_C void** _oil_function_class_ptr_clamplow_s16 () {
1.906 + oil_function_class_ptr_clamplow_s16 = __oil_function_class_clamplow_s16();
1.907 + return &oil_function_class_ptr_clamplow_s16->func;
1.908 + }
1.909 +#endif
1.910 +
1.911 +#ifdef __SYMBIAN32__
1.912 +
1.913 +EXPORT_C void** _oil_function_class_ptr_clamplow_u16 () {
1.914 + oil_function_class_ptr_clamplow_u16 = __oil_function_class_clamplow_u16();
1.915 + return &oil_function_class_ptr_clamplow_u16->func;
1.916 + }
1.917 +#endif
1.918 +
1.919 +#ifdef __SYMBIAN32__
1.920 +
1.921 +EXPORT_C void** _oil_function_class_ptr_clamplow_s32 () {
1.922 + oil_function_class_ptr_clamplow_s32 = __oil_function_class_clamplow_s32();
1.923 + return &oil_function_class_ptr_clamplow_s32->func;
1.924 + }
1.925 +#endif
1.926 +
1.927 +#ifdef __SYMBIAN32__
1.928 +
1.929 +EXPORT_C void** _oil_function_class_ptr_clamplow_u32 () {
1.930 + oil_function_class_ptr_clamplow_u32 = __oil_function_class_clamplow_u32();
1.931 + return &oil_function_class_ptr_clamplow_u32->func;
1.932 + }
1.933 +#endif
1.934 +
1.935 +#ifdef __SYMBIAN32__
1.936 +
1.937 +EXPORT_C void** _oil_function_class_ptr_clamplow_f32 () {
1.938 + oil_function_class_ptr_clamplow_f32 = __oil_function_class_clamplow_f32();
1.939 + return &oil_function_class_ptr_clamplow_f32->func;
1.940 + }
1.941 +#endif
1.942 +
1.943 +#ifdef __SYMBIAN32__
1.944 +
1.945 +EXPORT_C void** _oil_function_class_ptr_clamplow_f64 () {
1.946 + oil_function_class_ptr_clamplow_f64 = __oil_function_class_clamplow_f64();
1.947 + return &oil_function_class_ptr_clamplow_f64->func;
1.948 + }
1.949 +#endif
1.950 +