|
1 /* |
|
2 * LIBOIL - Library of Optimized Inner Loops |
|
3 * Copyright (c) 2005 David A. Schleef <ds@schleef.org> |
|
4 * All rights reserved. |
|
5 * |
|
6 * Redistribution and use in source and binary forms, with or without |
|
7 * modification, are permitted provided that the following conditions |
|
8 * are met: |
|
9 * 1. Redistributions of source code must retain the above copyright |
|
10 * notice, this list of conditions and the following disclaimer. |
|
11 * 2. Redistributions in binary form must reproduce the above copyright |
|
12 * notice, this list of conditions and the following disclaimer in the |
|
13 * documentation and/or other materials provided with the distribution. |
|
14 * |
|
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
|
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, |
|
19 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
|
20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
|
21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
|
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
|
23 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
|
24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
25 * POSSIBILITY OF SUCH DAMAGE. |
|
26 */ |
|
27 //Portions Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
28 |
|
29 #ifdef HAVE_CONFIG_H |
|
30 #include "config.h" |
|
31 #endif |
|
32 |
|
33 #include <math.h> |
|
34 |
|
35 #include <liboil/liboil.h> |
|
36 #include <liboil/liboilfunction.h> |
|
37 #include <liboil/liboiltest.h> |
|
38 |
|
39 /** |
|
40 * SECTION:liboilfuncs-math |
|
41 * @title: Simple Arithmetic |
|
42 * @short_description: Aritmetic operations |
|
43 * |
|
44 */ |
|
45 |
|
46 /** |
|
47 * SECTION:liboilfuncs-math8x8 |
|
48 * @title: Simple Arithmetic on Blocks |
|
49 * @short_description: Aritmetic operations on 8x8 blocks |
|
50 * |
|
51 */ |
|
52 |
|
53 /** |
|
54 * oil_add_s16: |
|
55 * @d: destination |
|
56 * @s1: source 1 |
|
57 * @s2: source 2 |
|
58 * @n: number of elements |
|
59 * |
|
60 * Adds elements in @s2 and @s1 and places the result in @d. |
|
61 */ |
|
62 OIL_DEFINE_CLASS (add_s16, "int16_t *d, int16_t *src1, int16_t *src2, int n"); |
|
63 /** |
|
64 * oil_subtract_s16: |
|
65 * @d: destination |
|
66 * @s1: source 1 |
|
67 * @s2: source 2 |
|
68 * @n: number of elements |
|
69 * |
|
70 * Subtracts elements in @s2 from @s1 and places the result in @d. |
|
71 */ |
|
72 OIL_DEFINE_CLASS (subtract_s16, "int16_t *d, int16_t *src1, int16_t *src2, int n"); |
|
73 /** |
|
74 * oil_add_s16_u8: |
|
75 * @d: destination |
|
76 * @s1: source 1 |
|
77 * @s2: source 2 |
|
78 * @n: number of elements |
|
79 * |
|
80 * Adds elements in @s2 and @s1 and places the result in @d. |
|
81 */ |
|
82 OIL_DEFINE_CLASS (add_s16_u8, "int16_t *d, int16_t *src1, uint8_t *src2, int n"); |
|
83 /** |
|
84 * oil_subtract_s16_u8: |
|
85 * @d: destination |
|
86 * @s1: source 1 |
|
87 * @s2: source 2 |
|
88 * @n: number of elements |
|
89 * |
|
90 * Subtracts elements in @s2 from @s1 and places the result in @d. |
|
91 */ |
|
92 OIL_DEFINE_CLASS (subtract_s16_u8, "int16_t *d, int16_t *src1, uint8_t *src2, int n"); |
|
93 |
|
94 /** |
|
95 * oil_add_f32: |
|
96 * @d: destination |
|
97 * @s1: source 1 |
|
98 * @s2: source 2 |
|
99 * @n: number of elements |
|
100 * |
|
101 * Adds elements in @s2 and @s1 and places the result in @d. |
|
102 */ |
|
103 OIL_DEFINE_CLASS (add_f32, "float *d, float *s1, float *s2, int n"); |
|
104 |
|
105 /** |
|
106 * oil_add_f64: |
|
107 * @d: destination |
|
108 * @s1: source 1 |
|
109 * @s2: source 2 |
|
110 * @n: number of elements |
|
111 * |
|
112 * Adds elements in @s2 and @s1 and places the result in @d. |
|
113 */ |
|
114 OIL_DEFINE_CLASS (add_f64, "double *d, double *s1, double *s2, int n"); |
|
115 |
|
116 |
|
117 |
|
118 /** |
|
119 * oil_subtract_f32: |
|
120 * @d: destination |
|
121 * @s1: source 1 |
|
122 * @s2: source 2 |
|
123 * @n: number of elements |
|
124 * |
|
125 * Subtracts elements in @s2 from @s1 and places the result in @d. |
|
126 */ |
|
127 OIL_DEFINE_CLASS (subtract_f32, "float *d, float *s1, float *s2, int n"); |
|
128 /** |
|
129 * oil_subtract_f64: |
|
130 * @d: destination |
|
131 * @s1: source 1 |
|
132 * @s2: source 2 |
|
133 * @n: number of elements |
|
134 * |
|
135 * Subtracts elements in @s2 from @s1 and places the result in @d. |
|
136 */ |
|
137 OIL_DEFINE_CLASS (subtract_f64, "double *d, double *s1, double *s2, int n"); |
|
138 /** |
|
139 * oil_multiply_f32: |
|
140 * @d: destination |
|
141 * @s1: source 1 |
|
142 * @s2: source 2 |
|
143 * @n: number of elements |
|
144 * |
|
145 * Multiplies elements in @s1 and @s2 and places the result in @d. |
|
146 */ |
|
147 OIL_DEFINE_CLASS (multiply_f32, "float *d, float *s1, float *s2, int n"); |
|
148 /** |
|
149 * oil_multiply_f64: |
|
150 * @d: destination |
|
151 * @s1: source 1 |
|
152 * @s2: source 2 |
|
153 * @n: number of elements |
|
154 * |
|
155 * Multiplies elements in @s1 and @s2 and places the result in @d. |
|
156 */ |
|
157 OIL_DEFINE_CLASS (multiply_f64, "double *d, double *s1, double *s2, int n"); |
|
158 /** |
|
159 * oil_divide_f32: |
|
160 * @d: destination |
|
161 * @s1: source 1 |
|
162 * @s2: source 2 |
|
163 * @n: number of elements |
|
164 * |
|
165 * Divides elements in @s1 by @s2 and places the result in @d. |
|
166 */ |
|
167 OIL_DEFINE_CLASS (divide_f32, "float *d, float *s1, float *s2, int n"); |
|
168 /** |
|
169 * oil_divide_f64: |
|
170 * @d: destination |
|
171 * @s1: source 1 |
|
172 * @s2: source 2 |
|
173 * @n: number of elements |
|
174 * |
|
175 * Divides elements in @s1 by @s2 and places the result in @d. |
|
176 */ |
|
177 OIL_DEFINE_CLASS (divide_f64, "double *d, double *s1, double *s2, int n"); |
|
178 /** |
|
179 * oil_minimum_f32: |
|
180 * @d: destination |
|
181 * @s1: source 1 |
|
182 * @s2: source 2 |
|
183 * @n: number of elements |
|
184 * |
|
185 * Places the lesser of @s1 and @s2 in @d. |
|
186 */ |
|
187 OIL_DEFINE_CLASS (minimum_f32, "float *d, float *s1, float *s2, int n"); |
|
188 /** |
|
189 * oil_minimum_f64: |
|
190 * @d: destination |
|
191 * @s1: source 1 |
|
192 * @s2: source 2 |
|
193 * @n: number of elements |
|
194 * |
|
195 * Places the lesser of @s1 and @s2 in @d. |
|
196 */ |
|
197 OIL_DEFINE_CLASS (minimum_f64, "float *d, float *s1, float *s2, int n"); |
|
198 /** |
|
199 * oil_maximum_f32: |
|
200 * @d: destination |
|
201 * @s1: source 1 |
|
202 * @s2: source 2 |
|
203 * @n: number of elements |
|
204 * |
|
205 * Places the greater of @s1 and @s2 in @d. |
|
206 */ |
|
207 OIL_DEFINE_CLASS (maximum_f32, "float *d, float *s1, float *s2, int n"); |
|
208 /** |
|
209 * oil_maximum_f64: |
|
210 * @d: destination |
|
211 * @s1: source 1 |
|
212 * @s2: source 2 |
|
213 * @n: number of elements |
|
214 * |
|
215 * Places the greater of @s1 and @s2 in @d. |
|
216 */ |
|
217 OIL_DEFINE_CLASS (maximum_f64, "float *d, float *s1, float *s2, int n"); |
|
218 |
|
219 /** |
|
220 * oil_negative_f32: |
|
221 * @d: destination |
|
222 * @s: source |
|
223 * @n: number of elements |
|
224 * |
|
225 * Negates each element in @s and places the result in @d. |
|
226 */ |
|
227 OIL_DEFINE_CLASS (negative_f32, "float *d, float *s, int n"); |
|
228 /** |
|
229 * oil_inverse_f32: |
|
230 * @d: destination |
|
231 * @s: source |
|
232 * @n: number of elements |
|
233 * |
|
234 * Calculates the multiplicative inverse of each element in @s and |
|
235 * places the result in @d. |
|
236 */ |
|
237 OIL_DEFINE_CLASS (inverse_f32, "float *d, float *s, int n"); |
|
238 /** |
|
239 * oil_sign_f32: |
|
240 * @d: destination |
|
241 * @s: source |
|
242 * @n: number of elements |
|
243 * |
|
244 * Calculates the sign of each element in @s and |
|
245 * places the result in @d. |
|
246 */ |
|
247 OIL_DEFINE_CLASS (sign_f32, "float *d, float *s, int n"); |
|
248 /** |
|
249 * oil_floor_f32: |
|
250 * @d: destination |
|
251 * @s: source |
|
252 * @n: number of elements |
|
253 * |
|
254 * Calculates the greatest integer less than or equal to each element |
|
255 * in @s and places the result in @d. |
|
256 */ |
|
257 OIL_DEFINE_CLASS (floor_f32, "float *d, float *s, int n"); |
|
258 |
|
259 /** |
|
260 * oil_scalaradd_f32_ns: |
|
261 * @d: destination |
|
262 * @s1: source |
|
263 * @s2_1: source |
|
264 * @n: number of elements |
|
265 * |
|
266 * Adds the constant value @s2_1 to each source element and places |
|
267 * the result in @d. |
|
268 */ |
|
269 OIL_DEFINE_CLASS (scalaradd_f32_ns, "float *d, float *s1, float *s2_1, int n"); |
|
270 /** |
|
271 * oil_scalarmultiply_f32_ns: |
|
272 * @d: destination |
|
273 * @s1: source |
|
274 * @s2_1: source |
|
275 * @n: number of elements |
|
276 * |
|
277 * Multiplies the constant value @s2_1 and each source element and places |
|
278 * the result in @d. |
|
279 */ |
|
280 OIL_DEFINE_CLASS (scalarmultiply_f32_ns, "float *d, float *s1, float *s2_1, int n"); |
|
281 |
|
282 /** |
|
283 * oil_scalarmultiply_f64_ns: |
|
284 * @d: destination |
|
285 * @s1: source |
|
286 * @s2_1: source |
|
287 * @n: number of elements |
|
288 * |
|
289 * Multiplies the constant value @s2_1 and each source element and places |
|
290 * the result in @d. |
|
291 */ |
|
292 OIL_DEFINE_CLASS (scalarmultiply_f64_ns, "double *d, double *s1, double *s2_1, int n"); |
|
293 |
|
294 static void |
|
295 add_s16_ref (int16_t *d, int16_t *src1, int16_t *src2, int n) |
|
296 { |
|
297 int i; |
|
298 for(i=0;i<n;i++){ |
|
299 d[i] = src1[i] + src2[i]; |
|
300 } |
|
301 } |
|
302 OIL_DEFINE_IMPL_REF (add_s16_ref, add_s16); |
|
303 |
|
304 static void |
|
305 subtract_s16_ref (int16_t *d, int16_t *src1, int16_t *src2, int n) |
|
306 { |
|
307 int i; |
|
308 for(i=0;i<n;i++){ |
|
309 d[i] = src1[i] - src2[i]; |
|
310 } |
|
311 } |
|
312 OIL_DEFINE_IMPL_REF (subtract_s16_ref, subtract_s16); |
|
313 |
|
314 static void |
|
315 add_s16_u8_ref (int16_t *d, int16_t *src1, uint8_t *src2, int n) |
|
316 { |
|
317 int i; |
|
318 for(i=0;i<n;i++){ |
|
319 d[i] = src1[i] + src2[i]; |
|
320 } |
|
321 } |
|
322 OIL_DEFINE_IMPL_REF (add_s16_u8_ref, add_s16_u8); |
|
323 |
|
324 static void |
|
325 subtract_s16_u8_ref (int16_t *d, int16_t *src1, uint8_t *src2, int n) |
|
326 { |
|
327 int i; |
|
328 for(i=0;i<n;i++){ |
|
329 d[i] = src1[i] - src2[i]; |
|
330 } |
|
331 } |
|
332 OIL_DEFINE_IMPL_REF (subtract_s16_u8_ref, subtract_s16_u8); |
|
333 |
|
334 static void |
|
335 add_f32_ref (float *dest, float *src1, float *src2, int n) |
|
336 { |
|
337 int i; |
|
338 |
|
339 for(i=0;i<n;i++){ |
|
340 dest[i] = src1[i] + src2[i]; |
|
341 } |
|
342 } |
|
343 OIL_DEFINE_IMPL_REF (add_f32_ref, add_f32); |
|
344 |
|
345 static void |
|
346 add_f64_ref (double *dest, double *src1, double *src2, int n) |
|
347 { |
|
348 int i; |
|
349 |
|
350 for(i=0;i<n;i++){ |
|
351 dest[i] = src1[i] + src2[i]; |
|
352 } |
|
353 } |
|
354 OIL_DEFINE_IMPL_REF (add_f64_ref, add_f64); |
|
355 |
|
356 static void |
|
357 subtract_f32_ref (float *dest, float *src1, float *src2, int n) |
|
358 { |
|
359 int i; |
|
360 |
|
361 for(i=0;i<n;i++){ |
|
362 dest[i] = src1[i] - src2[i]; |
|
363 } |
|
364 } |
|
365 OIL_DEFINE_IMPL_REF (subtract_f32_ref, subtract_f32); |
|
366 |
|
367 static void |
|
368 subtract_f64_ref (double *dest, double *src1, double *src2, int n) |
|
369 { |
|
370 int i; |
|
371 |
|
372 for(i=0;i<n;i++){ |
|
373 dest[i] = src1[i] - src2[i]; |
|
374 } |
|
375 } |
|
376 OIL_DEFINE_IMPL_REF (subtract_f64_ref, subtract_f64); |
|
377 |
|
378 static void |
|
379 multiply_f32_ref (float *dest, float *src1, float *src2, int n) |
|
380 { |
|
381 int i; |
|
382 |
|
383 for(i=0;i<n;i++){ |
|
384 dest[i] = src1[i] * src2[i]; |
|
385 } |
|
386 } |
|
387 OIL_DEFINE_IMPL_REF (multiply_f32_ref, multiply_f32); |
|
388 |
|
389 static void |
|
390 multiply_f64_ref (double *dest, double *src1, double *src2, int n) |
|
391 { |
|
392 int i; |
|
393 |
|
394 for(i=0;i<n;i++){ |
|
395 dest[i] = src1[i] * src2[i]; |
|
396 } |
|
397 } |
|
398 OIL_DEFINE_IMPL_REF (multiply_f64_ref, multiply_f64); |
|
399 |
|
400 static void |
|
401 divide_f32_ref (float *dest, float *src1, float *src2, int n) |
|
402 { |
|
403 int i; |
|
404 |
|
405 for(i=0;i<n;i++){ |
|
406 dest[i] = src1[i] / src2[i]; |
|
407 } |
|
408 } |
|
409 OIL_DEFINE_IMPL_REF (divide_f32_ref, divide_f32); |
|
410 |
|
411 static void |
|
412 divide_f64_ref (double *dest, double *src1, double *src2, int n) |
|
413 { |
|
414 int i; |
|
415 |
|
416 for(i=0;i<n;i++){ |
|
417 dest[i] = src1[i] / src2[i]; |
|
418 } |
|
419 } |
|
420 OIL_DEFINE_IMPL_REF (divide_f64_ref, divide_f64); |
|
421 |
|
422 static void |
|
423 minimum_f32_ref (float *dest, float *src1, float *src2, int n) |
|
424 { |
|
425 int i; |
|
426 |
|
427 for(i=0;i<n;i++){ |
|
428 dest[i] = (src1[i] < src2[i]) ? src1[i] : src2[i]; |
|
429 } |
|
430 } |
|
431 OIL_DEFINE_IMPL_REF (minimum_f32_ref, minimum_f32); |
|
432 |
|
433 static void |
|
434 maximum_f32_ref (float *dest, float *src1, float *src2, int n) |
|
435 { |
|
436 int i; |
|
437 |
|
438 for(i=0;i<n;i++){ |
|
439 dest[i] = (src1[i] > src2[i]) ? src1[i] : src2[i]; |
|
440 } |
|
441 } |
|
442 OIL_DEFINE_IMPL_REF (maximum_f32_ref, maximum_f32); |
|
443 |
|
444 static void |
|
445 minimum_f64_ref (float *dest, float *src1, float *src2, int n) |
|
446 { |
|
447 int i; |
|
448 |
|
449 for(i=0;i<n;i++){ |
|
450 dest[i] = (src1[i] < src2[i]) ? src1[i] : src2[i]; |
|
451 } |
|
452 } |
|
453 OIL_DEFINE_IMPL_REF (minimum_f64_ref, minimum_f64); |
|
454 |
|
455 static void |
|
456 maximum_f64_ref (float *dest, float *src1, float *src2, int n) |
|
457 { |
|
458 int i; |
|
459 |
|
460 for(i=0;i<n;i++){ |
|
461 dest[i] = (src1[i] > src2[i]) ? src1[i] : src2[i]; |
|
462 } |
|
463 } |
|
464 OIL_DEFINE_IMPL_REF (maximum_f64_ref, maximum_f64); |
|
465 |
|
466 static void |
|
467 negative_f32_ref (float *dest, float *src1, int n) |
|
468 { |
|
469 int i; |
|
470 |
|
471 for(i=0;i<n;i++){ |
|
472 dest[i] = -src1[i]; |
|
473 } |
|
474 } |
|
475 OIL_DEFINE_IMPL_REF (negative_f32_ref, negative_f32); |
|
476 |
|
477 static void |
|
478 inverse_f32_ref (float *dest, float *src1, int n) |
|
479 { |
|
480 int i; |
|
481 |
|
482 for(i=0;i<n;i++){ |
|
483 dest[i] = 1.0/src1[i]; |
|
484 } |
|
485 } |
|
486 OIL_DEFINE_IMPL_REF (inverse_f32_ref, inverse_f32); |
|
487 |
|
488 static void |
|
489 sign_f32_ref (float *dest, float *src1, int n) |
|
490 { |
|
491 int i; |
|
492 |
|
493 for(i=0;i<n;i++){ |
|
494 dest[i] = (src1[i] < 0) ? -src1[i] : src1[i]; |
|
495 } |
|
496 } |
|
497 OIL_DEFINE_IMPL_REF (sign_f32_ref, sign_f32); |
|
498 |
|
499 static void |
|
500 floor_f32_ref (float *dest, float *src1, int n) |
|
501 { |
|
502 int i; |
|
503 |
|
504 for(i=0;i<n;i++){ |
|
505 dest[i] = floor(src1[i]); |
|
506 } |
|
507 } |
|
508 OIL_DEFINE_IMPL_REF (floor_f32_ref, floor_f32); |
|
509 |
|
510 |
|
511 |
|
512 static void |
|
513 scalaradd_f32_ns_ref (float *dest, float *src1, float *src2, int n) |
|
514 { |
|
515 int i; |
|
516 |
|
517 for(i=0;i<n;i++){ |
|
518 dest[i] = src1[i] + src2[0]; |
|
519 } |
|
520 } |
|
521 OIL_DEFINE_IMPL_REF (scalaradd_f32_ns_ref, scalaradd_f32_ns); |
|
522 |
|
523 static void |
|
524 scalarmultiply_f32_ns_ref (float *dest, float *src1, float *src2, int n) |
|
525 { |
|
526 int i; |
|
527 |
|
528 for(i=0;i<n;i++){ |
|
529 dest[i] = src1[i] * src2[0]; |
|
530 } |
|
531 } |
|
532 OIL_DEFINE_IMPL_REF (scalarmultiply_f32_ns_ref, scalarmultiply_f32_ns); |
|
533 |
|
534 static void |
|
535 scalarmultiply_f64_ns_ref (double *dest, double *src1, double *src2, int n) |
|
536 { |
|
537 int i; |
|
538 |
|
539 for(i=0;i<n;i++){ |
|
540 dest[i] = src1[i] * src2[0]; |
|
541 } |
|
542 } |
|
543 OIL_DEFINE_IMPL_REF (scalarmultiply_f64_ns_ref, scalarmultiply_f64_ns); |
|
544 |
|
545 |
|
546 |
|
547 #ifdef __SYMBIAN32__ |
|
548 |
|
549 OilFunctionClass* __oil_function_class_add_s16() { |
|
550 return &_oil_function_class_add_s16; |
|
551 } |
|
552 #endif |
|
553 |
|
554 #ifdef __SYMBIAN32__ |
|
555 |
|
556 OilFunctionClass* __oil_function_class_subtract_s16() { |
|
557 return &_oil_function_class_subtract_s16; |
|
558 } |
|
559 #endif |
|
560 |
|
561 #ifdef __SYMBIAN32__ |
|
562 |
|
563 OilFunctionClass* __oil_function_class_add_s16_u8() { |
|
564 return &_oil_function_class_add_s16_u8; |
|
565 } |
|
566 #endif |
|
567 |
|
568 #ifdef __SYMBIAN32__ |
|
569 |
|
570 OilFunctionClass* __oil_function_class_subtract_s16_u8() { |
|
571 return &_oil_function_class_subtract_s16_u8; |
|
572 } |
|
573 #endif |
|
574 |
|
575 #ifdef __SYMBIAN32__ |
|
576 |
|
577 OilFunctionClass* __oil_function_class_add_f32() { |
|
578 return &_oil_function_class_add_f32; |
|
579 } |
|
580 #endif |
|
581 |
|
582 #ifdef __SYMBIAN32__ |
|
583 |
|
584 OilFunctionClass* __oil_function_class_add_f64() { |
|
585 return &_oil_function_class_add_f64; |
|
586 } |
|
587 #endif |
|
588 |
|
589 #ifdef __SYMBIAN32__ |
|
590 |
|
591 OilFunctionClass* __oil_function_class_subtract_f32() { |
|
592 return &_oil_function_class_subtract_f32; |
|
593 } |
|
594 #endif |
|
595 |
|
596 #ifdef __SYMBIAN32__ |
|
597 |
|
598 OilFunctionClass* __oil_function_class_subtract_f64() { |
|
599 return &_oil_function_class_subtract_f64; |
|
600 } |
|
601 #endif |
|
602 |
|
603 #ifdef __SYMBIAN32__ |
|
604 |
|
605 OilFunctionClass* __oil_function_class_multiply_f32() { |
|
606 return &_oil_function_class_multiply_f32; |
|
607 } |
|
608 #endif |
|
609 |
|
610 #ifdef __SYMBIAN32__ |
|
611 |
|
612 OilFunctionClass* __oil_function_class_multiply_f64() { |
|
613 return &_oil_function_class_multiply_f64; |
|
614 } |
|
615 #endif |
|
616 |
|
617 #ifdef __SYMBIAN32__ |
|
618 |
|
619 OilFunctionClass* __oil_function_class_divide_f32() { |
|
620 return &_oil_function_class_divide_f32; |
|
621 } |
|
622 #endif |
|
623 |
|
624 #ifdef __SYMBIAN32__ |
|
625 |
|
626 OilFunctionClass* __oil_function_class_divide_f64() { |
|
627 return &_oil_function_class_divide_f64; |
|
628 } |
|
629 #endif |
|
630 |
|
631 #ifdef __SYMBIAN32__ |
|
632 |
|
633 OilFunctionClass* __oil_function_class_minimum_f32() { |
|
634 return &_oil_function_class_minimum_f32; |
|
635 } |
|
636 #endif |
|
637 |
|
638 #ifdef __SYMBIAN32__ |
|
639 |
|
640 OilFunctionClass* __oil_function_class_minimum_f64() { |
|
641 return &_oil_function_class_minimum_f64; |
|
642 } |
|
643 #endif |
|
644 |
|
645 #ifdef __SYMBIAN32__ |
|
646 |
|
647 OilFunctionClass* __oil_function_class_maximum_f32() { |
|
648 return &_oil_function_class_maximum_f32; |
|
649 } |
|
650 #endif |
|
651 |
|
652 #ifdef __SYMBIAN32__ |
|
653 |
|
654 OilFunctionClass* __oil_function_class_maximum_f64() { |
|
655 return &_oil_function_class_maximum_f64; |
|
656 } |
|
657 #endif |
|
658 |
|
659 #ifdef __SYMBIAN32__ |
|
660 |
|
661 OilFunctionClass* __oil_function_class_negative_f32() { |
|
662 return &_oil_function_class_negative_f32; |
|
663 } |
|
664 #endif |
|
665 |
|
666 #ifdef __SYMBIAN32__ |
|
667 |
|
668 OilFunctionClass* __oil_function_class_inverse_f32() { |
|
669 return &_oil_function_class_inverse_f32; |
|
670 } |
|
671 #endif |
|
672 |
|
673 #ifdef __SYMBIAN32__ |
|
674 |
|
675 OilFunctionClass* __oil_function_class_sign_f32() { |
|
676 return &_oil_function_class_sign_f32; |
|
677 } |
|
678 #endif |
|
679 |
|
680 #ifdef __SYMBIAN32__ |
|
681 |
|
682 OilFunctionClass* __oil_function_class_floor_f32() { |
|
683 return &_oil_function_class_floor_f32; |
|
684 } |
|
685 #endif |
|
686 |
|
687 #ifdef __SYMBIAN32__ |
|
688 |
|
689 OilFunctionClass* __oil_function_class_scalaradd_f32_ns() { |
|
690 return &_oil_function_class_scalaradd_f32_ns; |
|
691 } |
|
692 #endif |
|
693 |
|
694 #ifdef __SYMBIAN32__ |
|
695 |
|
696 OilFunctionClass* __oil_function_class_scalarmultiply_f32_ns() { |
|
697 return &_oil_function_class_scalarmultiply_f32_ns; |
|
698 } |
|
699 #endif |
|
700 |
|
701 #ifdef __SYMBIAN32__ |
|
702 |
|
703 OilFunctionClass* __oil_function_class_scalarmultiply_f64_ns() { |
|
704 return &_oil_function_class_scalarmultiply_f64_ns; |
|
705 } |
|
706 #endif |
|
707 |
|
708 |
|
709 |
|
710 #ifdef __SYMBIAN32__ |
|
711 |
|
712 OilFunctionImpl* __oil_function_impl_add_s16_ref() { |
|
713 return &_oil_function_impl_add_s16_ref; |
|
714 } |
|
715 #endif |
|
716 |
|
717 #ifdef __SYMBIAN32__ |
|
718 |
|
719 OilFunctionImpl* __oil_function_impl_subtract_s16_ref() { |
|
720 return &_oil_function_impl_subtract_s16_ref; |
|
721 } |
|
722 #endif |
|
723 |
|
724 #ifdef __SYMBIAN32__ |
|
725 |
|
726 OilFunctionImpl* __oil_function_impl_add_s16_u8_ref() { |
|
727 return &_oil_function_impl_add_s16_u8_ref; |
|
728 } |
|
729 #endif |
|
730 |
|
731 #ifdef __SYMBIAN32__ |
|
732 |
|
733 OilFunctionImpl* __oil_function_impl_subtract_s16_u8_ref() { |
|
734 return &_oil_function_impl_subtract_s16_u8_ref; |
|
735 } |
|
736 #endif |
|
737 |
|
738 #ifdef __SYMBIAN32__ |
|
739 |
|
740 OilFunctionImpl* __oil_function_impl_add_f32_ref() { |
|
741 return &_oil_function_impl_add_f32_ref; |
|
742 } |
|
743 #endif |
|
744 |
|
745 #ifdef __SYMBIAN32__ |
|
746 |
|
747 OilFunctionImpl* __oil_function_impl_add_f64_ref() { |
|
748 return &_oil_function_impl_add_f64_ref; |
|
749 } |
|
750 #endif |
|
751 |
|
752 #ifdef __SYMBIAN32__ |
|
753 |
|
754 OilFunctionImpl* __oil_function_impl_subtract_f32_ref() { |
|
755 return &_oil_function_impl_subtract_f32_ref; |
|
756 } |
|
757 #endif |
|
758 |
|
759 #ifdef __SYMBIAN32__ |
|
760 |
|
761 OilFunctionImpl* __oil_function_impl_subtract_f64_ref() { |
|
762 return &_oil_function_impl_subtract_f64_ref; |
|
763 } |
|
764 #endif |
|
765 |
|
766 #ifdef __SYMBIAN32__ |
|
767 |
|
768 OilFunctionImpl* __oil_function_impl_multiply_f32_ref() { |
|
769 return &_oil_function_impl_multiply_f32_ref; |
|
770 } |
|
771 #endif |
|
772 |
|
773 #ifdef __SYMBIAN32__ |
|
774 |
|
775 OilFunctionImpl* __oil_function_impl_multiply_f64_ref() { |
|
776 return &_oil_function_impl_multiply_f64_ref; |
|
777 } |
|
778 #endif |
|
779 |
|
780 #ifdef __SYMBIAN32__ |
|
781 |
|
782 OilFunctionImpl* __oil_function_impl_divide_f32_ref() { |
|
783 return &_oil_function_impl_divide_f32_ref; |
|
784 } |
|
785 #endif |
|
786 |
|
787 #ifdef __SYMBIAN32__ |
|
788 |
|
789 OilFunctionImpl* __oil_function_impl_divide_f64_ref() { |
|
790 return &_oil_function_impl_divide_f64_ref; |
|
791 } |
|
792 #endif |
|
793 |
|
794 #ifdef __SYMBIAN32__ |
|
795 |
|
796 OilFunctionImpl* __oil_function_impl_minimum_f32_ref() { |
|
797 return &_oil_function_impl_minimum_f32_ref; |
|
798 } |
|
799 #endif |
|
800 |
|
801 #ifdef __SYMBIAN32__ |
|
802 |
|
803 OilFunctionImpl* __oil_function_impl_maximum_f32_ref() { |
|
804 return &_oil_function_impl_maximum_f32_ref; |
|
805 } |
|
806 #endif |
|
807 |
|
808 #ifdef __SYMBIAN32__ |
|
809 |
|
810 OilFunctionImpl* __oil_function_impl_minimum_f64_ref() { |
|
811 return &_oil_function_impl_minimum_f64_ref; |
|
812 } |
|
813 #endif |
|
814 |
|
815 #ifdef __SYMBIAN32__ |
|
816 |
|
817 OilFunctionImpl* __oil_function_impl_maximum_f64_ref() { |
|
818 return &_oil_function_impl_maximum_f64_ref; |
|
819 } |
|
820 #endif |
|
821 |
|
822 #ifdef __SYMBIAN32__ |
|
823 |
|
824 OilFunctionImpl* __oil_function_impl_negative_f32_ref() { |
|
825 return &_oil_function_impl_negative_f32_ref; |
|
826 } |
|
827 #endif |
|
828 |
|
829 #ifdef __SYMBIAN32__ |
|
830 |
|
831 OilFunctionImpl* __oil_function_impl_inverse_f32_ref() { |
|
832 return &_oil_function_impl_inverse_f32_ref; |
|
833 } |
|
834 #endif |
|
835 |
|
836 #ifdef __SYMBIAN32__ |
|
837 |
|
838 OilFunctionImpl* __oil_function_impl_sign_f32_ref() { |
|
839 return &_oil_function_impl_sign_f32_ref; |
|
840 } |
|
841 #endif |
|
842 |
|
843 #ifdef __SYMBIAN32__ |
|
844 |
|
845 OilFunctionImpl* __oil_function_impl_floor_f32_ref() { |
|
846 return &_oil_function_impl_floor_f32_ref; |
|
847 } |
|
848 #endif |
|
849 |
|
850 #ifdef __SYMBIAN32__ |
|
851 |
|
852 OilFunctionImpl* __oil_function_impl_scalaradd_f32_ns_ref() { |
|
853 return &_oil_function_impl_scalaradd_f32_ns_ref; |
|
854 } |
|
855 #endif |
|
856 |
|
857 #ifdef __SYMBIAN32__ |
|
858 |
|
859 OilFunctionImpl* __oil_function_impl_scalarmultiply_f32_ns_ref() { |
|
860 return &_oil_function_impl_scalarmultiply_f32_ns_ref; |
|
861 } |
|
862 #endif |
|
863 |
|
864 #ifdef __SYMBIAN32__ |
|
865 |
|
866 OilFunctionImpl* __oil_function_impl_scalarmultiply_f64_ns_ref() { |
|
867 return &_oil_function_impl_scalarmultiply_f64_ns_ref; |
|
868 } |
|
869 #endif |
|
870 |
|
871 |
|
872 |
|
873 #ifdef __SYMBIAN32__ |
|
874 |
|
875 EXPORT_C void** _oil_function_class_ptr_add_s16 () { |
|
876 oil_function_class_ptr_add_s16 = __oil_function_class_add_s16(); |
|
877 return &oil_function_class_ptr_add_s16->func; |
|
878 } |
|
879 #endif |
|
880 |
|
881 #ifdef __SYMBIAN32__ |
|
882 |
|
883 EXPORT_C void** _oil_function_class_ptr_subtract_s16 () { |
|
884 oil_function_class_ptr_subtract_s16 = __oil_function_class_subtract_s16(); |
|
885 return &oil_function_class_ptr_subtract_s16->func; |
|
886 } |
|
887 #endif |
|
888 |
|
889 #ifdef __SYMBIAN32__ |
|
890 |
|
891 EXPORT_C void** _oil_function_class_ptr_add_s16_u8 () { |
|
892 oil_function_class_ptr_add_s16_u8 = __oil_function_class_add_s16_u8(); |
|
893 return &oil_function_class_ptr_add_s16_u8->func; |
|
894 } |
|
895 #endif |
|
896 |
|
897 #ifdef __SYMBIAN32__ |
|
898 |
|
899 EXPORT_C void** _oil_function_class_ptr_subtract_s16_u8 () { |
|
900 oil_function_class_ptr_subtract_s16_u8 = __oil_function_class_subtract_s16_u8(); |
|
901 return &oil_function_class_ptr_subtract_s16_u8->func; |
|
902 } |
|
903 #endif |
|
904 |
|
905 #ifdef __SYMBIAN32__ |
|
906 |
|
907 EXPORT_C void** _oil_function_class_ptr_add_f32 () { |
|
908 oil_function_class_ptr_add_f32 = __oil_function_class_add_f32(); |
|
909 return &oil_function_class_ptr_add_f32->func; |
|
910 } |
|
911 #endif |
|
912 |
|
913 #ifdef __SYMBIAN32__ |
|
914 |
|
915 EXPORT_C void** _oil_function_class_ptr_add_f64 () { |
|
916 oil_function_class_ptr_add_f64 = __oil_function_class_add_f64(); |
|
917 return &oil_function_class_ptr_add_f64->func; |
|
918 } |
|
919 #endif |
|
920 |
|
921 #ifdef __SYMBIAN32__ |
|
922 |
|
923 EXPORT_C void** _oil_function_class_ptr_subtract_f32 () { |
|
924 oil_function_class_ptr_subtract_f32 = __oil_function_class_subtract_f32(); |
|
925 return &oil_function_class_ptr_subtract_f32->func; |
|
926 } |
|
927 #endif |
|
928 |
|
929 #ifdef __SYMBIAN32__ |
|
930 |
|
931 EXPORT_C void** _oil_function_class_ptr_subtract_f64 () { |
|
932 oil_function_class_ptr_subtract_f64 = __oil_function_class_subtract_f64(); |
|
933 return &oil_function_class_ptr_subtract_f64->func; |
|
934 } |
|
935 #endif |
|
936 |
|
937 #ifdef __SYMBIAN32__ |
|
938 |
|
939 EXPORT_C void** _oil_function_class_ptr_multiply_f32 () { |
|
940 oil_function_class_ptr_multiply_f32 = __oil_function_class_multiply_f32(); |
|
941 return &oil_function_class_ptr_multiply_f32->func; |
|
942 } |
|
943 #endif |
|
944 |
|
945 #ifdef __SYMBIAN32__ |
|
946 |
|
947 EXPORT_C void** _oil_function_class_ptr_multiply_f64 () { |
|
948 oil_function_class_ptr_multiply_f64 = __oil_function_class_multiply_f64(); |
|
949 return &oil_function_class_ptr_multiply_f64->func; |
|
950 } |
|
951 #endif |
|
952 |
|
953 #ifdef __SYMBIAN32__ |
|
954 |
|
955 EXPORT_C void** _oil_function_class_ptr_divide_f32 () { |
|
956 oil_function_class_ptr_divide_f32 = __oil_function_class_divide_f32(); |
|
957 return &oil_function_class_ptr_divide_f32->func; |
|
958 } |
|
959 #endif |
|
960 |
|
961 #ifdef __SYMBIAN32__ |
|
962 |
|
963 EXPORT_C void** _oil_function_class_ptr_divide_f64 () { |
|
964 oil_function_class_ptr_divide_f64 = __oil_function_class_divide_f64(); |
|
965 return &oil_function_class_ptr_divide_f64->func; |
|
966 } |
|
967 #endif |
|
968 |
|
969 #ifdef __SYMBIAN32__ |
|
970 |
|
971 EXPORT_C void** _oil_function_class_ptr_minimum_f32 () { |
|
972 oil_function_class_ptr_minimum_f32 = __oil_function_class_minimum_f32(); |
|
973 return &oil_function_class_ptr_minimum_f32->func; |
|
974 } |
|
975 #endif |
|
976 |
|
977 #ifdef __SYMBIAN32__ |
|
978 |
|
979 EXPORT_C void** _oil_function_class_ptr_minimum_f64 () { |
|
980 oil_function_class_ptr_minimum_f64 = __oil_function_class_minimum_f64(); |
|
981 return &oil_function_class_ptr_minimum_f64->func; |
|
982 } |
|
983 #endif |
|
984 |
|
985 #ifdef __SYMBIAN32__ |
|
986 |
|
987 EXPORT_C void** _oil_function_class_ptr_maximum_f32 () { |
|
988 oil_function_class_ptr_maximum_f32 = __oil_function_class_maximum_f32(); |
|
989 return &oil_function_class_ptr_maximum_f32->func; |
|
990 } |
|
991 #endif |
|
992 |
|
993 #ifdef __SYMBIAN32__ |
|
994 |
|
995 EXPORT_C void** _oil_function_class_ptr_maximum_f64 () { |
|
996 oil_function_class_ptr_maximum_f64 = __oil_function_class_maximum_f64(); |
|
997 return &oil_function_class_ptr_maximum_f64->func; |
|
998 } |
|
999 #endif |
|
1000 |
|
1001 #ifdef __SYMBIAN32__ |
|
1002 |
|
1003 EXPORT_C void** _oil_function_class_ptr_negative_f32 () { |
|
1004 oil_function_class_ptr_negative_f32 = __oil_function_class_negative_f32(); |
|
1005 return &oil_function_class_ptr_negative_f32->func; |
|
1006 } |
|
1007 #endif |
|
1008 |
|
1009 #ifdef __SYMBIAN32__ |
|
1010 |
|
1011 EXPORT_C void** _oil_function_class_ptr_inverse_f32 () { |
|
1012 oil_function_class_ptr_inverse_f32 = __oil_function_class_inverse_f32(); |
|
1013 return &oil_function_class_ptr_inverse_f32->func; |
|
1014 } |
|
1015 #endif |
|
1016 |
|
1017 #ifdef __SYMBIAN32__ |
|
1018 |
|
1019 EXPORT_C void** _oil_function_class_ptr_sign_f32 () { |
|
1020 oil_function_class_ptr_sign_f32 = __oil_function_class_sign_f32(); |
|
1021 return &oil_function_class_ptr_sign_f32->func; |
|
1022 } |
|
1023 #endif |
|
1024 |
|
1025 #ifdef __SYMBIAN32__ |
|
1026 |
|
1027 EXPORT_C void** _oil_function_class_ptr_floor_f32 () { |
|
1028 oil_function_class_ptr_floor_f32 = __oil_function_class_floor_f32(); |
|
1029 return &oil_function_class_ptr_floor_f32->func; |
|
1030 } |
|
1031 #endif |
|
1032 |
|
1033 #ifdef __SYMBIAN32__ |
|
1034 |
|
1035 EXPORT_C void** _oil_function_class_ptr_scalaradd_f32_ns () { |
|
1036 oil_function_class_ptr_scalaradd_f32_ns = __oil_function_class_scalaradd_f32_ns(); |
|
1037 return &oil_function_class_ptr_scalaradd_f32_ns->func; |
|
1038 } |
|
1039 #endif |
|
1040 |
|
1041 #ifdef __SYMBIAN32__ |
|
1042 |
|
1043 EXPORT_C void** _oil_function_class_ptr_scalarmultiply_f32_ns () { |
|
1044 oil_function_class_ptr_scalarmultiply_f32_ns = __oil_function_class_scalarmultiply_f32_ns(); |
|
1045 return &oil_function_class_ptr_scalarmultiply_f32_ns->func; |
|
1046 } |
|
1047 #endif |
|
1048 |
|
1049 #ifdef __SYMBIAN32__ |
|
1050 |
|
1051 EXPORT_C void** _oil_function_class_ptr_scalarmultiply_f64_ns () { |
|
1052 oil_function_class_ptr_scalarmultiply_f64_ns = __oil_function_class_scalarmultiply_f64_ns(); |
|
1053 return &oil_function_class_ptr_scalarmultiply_f64_ns->func; |
|
1054 } |
|
1055 #endif |
|
1056 |