|
1 /* |
|
2 * LIBOIL - Library of Optimized Inner Loops |
|
3 * Copyright (c) 2001,2003,2004 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 #include <liboil/liboilfunction.h> |
|
33 #include "liboil/conv/conv.h" |
|
34 |
|
35 #include <math.h> |
|
36 |
|
37 #ifdef __SYMBIAN32__ |
|
38 #ifdef __WINSCW__ |
|
39 #pragma warn_emptydecl off |
|
40 #endif//__WINSCW__ |
|
41 #endif//__SYMBIAN32__ |
|
42 |
|
43 #define CONV_DEFINE_CAST(desttype,srctype) \ |
|
44 static void conv_ ## desttype ## _ ## srctype ## _c ( \ |
|
45 oil_type_ ## desttype *dest, \ |
|
46 int dest_stride, \ |
|
47 const oil_type_ ## srctype *src, \ |
|
48 int src_stride, int n) \ |
|
49 { \ |
|
50 int i; \ |
|
51 for(i=0;i<n;i++){ \ |
|
52 *dest = *src; \ |
|
53 dest = OIL_OFFSET(dest, dest_stride); \ |
|
54 src = OIL_OFFSET(src, src_stride); \ |
|
55 } \ |
|
56 } \ |
|
57 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _c, \ |
|
58 conv_ ## desttype ## _ ## srctype); |
|
59 |
|
60 #ifdef HAVE_RINT |
|
61 #define CONV_DEFINE_FLOAT(desttype,srctype) \ |
|
62 static void conv_ ## desttype ## _ ## srctype ## _c ( \ |
|
63 oil_type_ ## desttype *dest, \ |
|
64 int dest_stride, \ |
|
65 const oil_type_ ## srctype *src, \ |
|
66 int src_stride, int n) \ |
|
67 { \ |
|
68 int i; \ |
|
69 for(i=0;i<n;i++){ \ |
|
70 *dest = rint(*src); \ |
|
71 dest = OIL_OFFSET(dest, dest_stride); \ |
|
72 src = OIL_OFFSET(src, src_stride); \ |
|
73 } \ |
|
74 } \ |
|
75 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _c, \ |
|
76 conv_ ## desttype ## _ ## srctype); |
|
77 #else |
|
78 #define CONV_DEFINE_FLOAT(desttype,srctype) |
|
79 #endif |
|
80 |
|
81 CONV_DEFINE_CAST(s8,u8); |
|
82 #ifdef __SYMBIAN32__ |
|
83 |
|
84 OilFunctionImpl* __oil_function_impl_conv_s8_u8_c() { |
|
85 return &_oil_function_impl_conv_s8_u8_c; |
|
86 } |
|
87 #endif |
|
88 |
|
89 CONV_DEFINE_CAST(s8,s16); |
|
90 #ifdef __SYMBIAN32__ |
|
91 |
|
92 OilFunctionImpl* __oil_function_impl_conv_s8_s16_c() { |
|
93 return &_oil_function_impl_conv_s8_s16_c; |
|
94 } |
|
95 #endif |
|
96 |
|
97 CONV_DEFINE_CAST(s8,u16); |
|
98 #ifdef __SYMBIAN32__ |
|
99 |
|
100 OilFunctionImpl* __oil_function_impl_conv_s8_u16_c() { |
|
101 return &_oil_function_impl_conv_s8_u16_c; |
|
102 } |
|
103 #endif |
|
104 |
|
105 CONV_DEFINE_CAST(s8,s32); |
|
106 #ifdef __SYMBIAN32__ |
|
107 |
|
108 OilFunctionImpl* __oil_function_impl_conv_s8_s32_c() { |
|
109 return &_oil_function_impl_conv_s8_s32_c; |
|
110 } |
|
111 #endif |
|
112 |
|
113 CONV_DEFINE_CAST(s8,u32); |
|
114 #ifdef __SYMBIAN32__ |
|
115 |
|
116 OilFunctionImpl* __oil_function_impl_conv_s8_u32_c() { |
|
117 return &_oil_function_impl_conv_s8_u32_c; |
|
118 } |
|
119 #endif |
|
120 |
|
121 CONV_DEFINE_FLOAT(s8,f32); |
|
122 #ifdef __SYMBIAN32__ |
|
123 |
|
124 OilFunctionImpl* __oil_function_impl_conv_s8_f32_c() { |
|
125 return &_oil_function_impl_conv_s8_f32_c; |
|
126 } |
|
127 #endif |
|
128 |
|
129 CONV_DEFINE_FLOAT(s8,f64); |
|
130 #ifdef __SYMBIAN32__ |
|
131 |
|
132 OilFunctionImpl* __oil_function_impl_conv_s8_f64_c() { |
|
133 return &_oil_function_impl_conv_s8_f64_c; |
|
134 } |
|
135 #endif |
|
136 |
|
137 CONV_DEFINE_CAST(u8,s8); |
|
138 #ifdef __SYMBIAN32__ |
|
139 |
|
140 OilFunctionImpl* __oil_function_impl_conv_u8_s8_c() { |
|
141 return &_oil_function_impl_conv_u8_s8_c; |
|
142 } |
|
143 #endif |
|
144 |
|
145 CONV_DEFINE_CAST(u8,s16); |
|
146 #ifdef __SYMBIAN32__ |
|
147 |
|
148 OilFunctionImpl* __oil_function_impl_conv_u8_s16_c() { |
|
149 return &_oil_function_impl_conv_u8_s16_c; |
|
150 } |
|
151 #endif |
|
152 |
|
153 CONV_DEFINE_CAST(u8,u16); |
|
154 #ifdef __SYMBIAN32__ |
|
155 |
|
156 OilFunctionImpl* __oil_function_impl_conv_u8_u16_c() { |
|
157 return &_oil_function_impl_conv_u8_u16_c; |
|
158 } |
|
159 #endif |
|
160 |
|
161 CONV_DEFINE_CAST(u8,s32); |
|
162 #ifdef __SYMBIAN32__ |
|
163 |
|
164 OilFunctionImpl* __oil_function_impl_conv_u8_s32_c() { |
|
165 return &_oil_function_impl_conv_u8_s32_c; |
|
166 } |
|
167 #endif |
|
168 |
|
169 CONV_DEFINE_CAST(u8,u32); |
|
170 #ifdef __SYMBIAN32__ |
|
171 |
|
172 OilFunctionImpl* __oil_function_impl_conv_u8_u32_c() { |
|
173 return &_oil_function_impl_conv_u8_u32_c; |
|
174 } |
|
175 #endif |
|
176 |
|
177 CONV_DEFINE_FLOAT(u8,f32); |
|
178 #ifdef __SYMBIAN32__ |
|
179 |
|
180 OilFunctionImpl* __oil_function_impl_conv_u8_f32_c() { |
|
181 return &_oil_function_impl_conv_u8_f32_c; |
|
182 } |
|
183 #endif |
|
184 |
|
185 CONV_DEFINE_FLOAT(u8,f64); |
|
186 #ifdef __SYMBIAN32__ |
|
187 |
|
188 OilFunctionImpl* __oil_function_impl_conv_u8_f64_c() { |
|
189 return &_oil_function_impl_conv_u8_f64_c; |
|
190 } |
|
191 #endif |
|
192 |
|
193 CONV_DEFINE_CAST(s16,s8) |
|
194 #ifdef __SYMBIAN32__ |
|
195 |
|
196 OilFunctionImpl* __oil_function_impl_conv_s16_s8_c() { |
|
197 return &_oil_function_impl_conv_s16_s8_c; |
|
198 } |
|
199 #endif |
|
200 |
|
201 CONV_DEFINE_CAST(s16,u8) |
|
202 #ifdef __SYMBIAN32__ |
|
203 |
|
204 OilFunctionImpl* __oil_function_impl_conv_s16_u8_c() { |
|
205 return &_oil_function_impl_conv_s16_u8_c; |
|
206 } |
|
207 #endif |
|
208 |
|
209 CONV_DEFINE_CAST(s16,u16); |
|
210 #ifdef __SYMBIAN32__ |
|
211 |
|
212 OilFunctionImpl* __oil_function_impl_conv_s16_u16_c() { |
|
213 return &_oil_function_impl_conv_s16_u16_c; |
|
214 } |
|
215 #endif |
|
216 |
|
217 CONV_DEFINE_CAST(s16,s32); |
|
218 #ifdef __SYMBIAN32__ |
|
219 |
|
220 OilFunctionImpl* __oil_function_impl_conv_s16_s32_c() { |
|
221 return &_oil_function_impl_conv_s16_s32_c; |
|
222 } |
|
223 #endif |
|
224 |
|
225 CONV_DEFINE_CAST(s16,u32); |
|
226 #ifdef __SYMBIAN32__ |
|
227 |
|
228 OilFunctionImpl* __oil_function_impl_conv_s16_u32_c() { |
|
229 return &_oil_function_impl_conv_s16_u32_c; |
|
230 } |
|
231 #endif |
|
232 |
|
233 CONV_DEFINE_FLOAT(s16,f32); |
|
234 #ifdef __SYMBIAN32__ |
|
235 |
|
236 OilFunctionImpl* __oil_function_impl_conv_s16_f32_c() { |
|
237 return &_oil_function_impl_conv_s16_f32_c; |
|
238 } |
|
239 #endif |
|
240 |
|
241 CONV_DEFINE_FLOAT(s16,f64); |
|
242 #ifdef __SYMBIAN32__ |
|
243 |
|
244 OilFunctionImpl* __oil_function_impl_conv_s16_f64_c() { |
|
245 return &_oil_function_impl_conv_s16_f64_c; |
|
246 } |
|
247 #endif |
|
248 |
|
249 CONV_DEFINE_CAST(u16,s8) |
|
250 #ifdef __SYMBIAN32__ |
|
251 |
|
252 OilFunctionImpl* __oil_function_impl_conv_u16_s8_c() { |
|
253 return &_oil_function_impl_conv_u16_s8_c; |
|
254 } |
|
255 #endif |
|
256 |
|
257 CONV_DEFINE_CAST(u16,u8) |
|
258 #ifdef __SYMBIAN32__ |
|
259 |
|
260 OilFunctionImpl* __oil_function_impl_conv_u16_u8_c() { |
|
261 return &_oil_function_impl_conv_u16_u8_c; |
|
262 } |
|
263 #endif |
|
264 |
|
265 CONV_DEFINE_CAST(u16,s16); |
|
266 #ifdef __SYMBIAN32__ |
|
267 |
|
268 OilFunctionImpl* __oil_function_impl_conv_u16_s16_c() { |
|
269 return &_oil_function_impl_conv_u16_s16_c; |
|
270 } |
|
271 #endif |
|
272 |
|
273 CONV_DEFINE_CAST(u16,s32); |
|
274 #ifdef __SYMBIAN32__ |
|
275 |
|
276 OilFunctionImpl* __oil_function_impl_conv_u16_s32_c() { |
|
277 return &_oil_function_impl_conv_u16_s32_c; |
|
278 } |
|
279 #endif |
|
280 |
|
281 CONV_DEFINE_CAST(u16,u32); |
|
282 #ifdef __SYMBIAN32__ |
|
283 |
|
284 OilFunctionImpl* __oil_function_impl_conv_u16_u32_c() { |
|
285 return &_oil_function_impl_conv_u16_u32_c; |
|
286 } |
|
287 #endif |
|
288 |
|
289 CONV_DEFINE_FLOAT(u16,f32); |
|
290 #ifdef __SYMBIAN32__ |
|
291 |
|
292 OilFunctionImpl* __oil_function_impl_conv_u16_f32_c() { |
|
293 return &_oil_function_impl_conv_u16_f32_c; |
|
294 } |
|
295 #endif |
|
296 |
|
297 CONV_DEFINE_FLOAT(u16,f64); |
|
298 #ifdef __SYMBIAN32__ |
|
299 |
|
300 OilFunctionImpl* __oil_function_impl_conv_u16_f64_c() { |
|
301 return &_oil_function_impl_conv_u16_f64_c; |
|
302 } |
|
303 #endif |
|
304 |
|
305 |
|
306 CONV_DEFINE_CAST(s32,s8) |
|
307 #ifdef __SYMBIAN32__ |
|
308 |
|
309 OilFunctionImpl* __oil_function_impl_conv_s32_s8_c() { |
|
310 return &_oil_function_impl_conv_s32_s8_c; |
|
311 } |
|
312 #endif |
|
313 |
|
314 CONV_DEFINE_CAST(s32,s16) |
|
315 #ifdef __SYMBIAN32__ |
|
316 |
|
317 OilFunctionImpl* __oil_function_impl_conv_s32_s16_c() { |
|
318 return &_oil_function_impl_conv_s32_s16_c; |
|
319 } |
|
320 #endif |
|
321 |
|
322 CONV_DEFINE_CAST(s32,u8) |
|
323 #ifdef __SYMBIAN32__ |
|
324 |
|
325 OilFunctionImpl* __oil_function_impl_conv_s32_u8_c() { |
|
326 return &_oil_function_impl_conv_s32_u8_c; |
|
327 } |
|
328 #endif |
|
329 |
|
330 CONV_DEFINE_CAST(s32,u16) |
|
331 #ifdef __SYMBIAN32__ |
|
332 |
|
333 OilFunctionImpl* __oil_function_impl_conv_s32_u16_c() { |
|
334 return &_oil_function_impl_conv_s32_u16_c; |
|
335 } |
|
336 #endif |
|
337 |
|
338 CONV_DEFINE_CAST(s32,u32); |
|
339 #ifdef __SYMBIAN32__ |
|
340 |
|
341 OilFunctionImpl* __oil_function_impl_conv_s32_u32_c() { |
|
342 return &_oil_function_impl_conv_s32_u32_c; |
|
343 } |
|
344 #endif |
|
345 |
|
346 CONV_DEFINE_FLOAT(s32,f32); |
|
347 #ifdef __SYMBIAN32__ |
|
348 |
|
349 OilFunctionImpl* __oil_function_impl_conv_s32_f32_c() { |
|
350 return &_oil_function_impl_conv_s32_f32_c; |
|
351 } |
|
352 #endif |
|
353 |
|
354 CONV_DEFINE_FLOAT(s32,f64); |
|
355 #ifdef __SYMBIAN32__ |
|
356 |
|
357 OilFunctionImpl* __oil_function_impl_conv_s32_f64_c() { |
|
358 return &_oil_function_impl_conv_s32_f64_c; |
|
359 } |
|
360 #endif |
|
361 |
|
362 CONV_DEFINE_CAST(u32,s8) |
|
363 #ifdef __SYMBIAN32__ |
|
364 |
|
365 OilFunctionImpl* __oil_function_impl_conv_u32_s8_c() { |
|
366 return &_oil_function_impl_conv_u32_s8_c; |
|
367 } |
|
368 #endif |
|
369 |
|
370 CONV_DEFINE_CAST(u32,s16) |
|
371 #ifdef __SYMBIAN32__ |
|
372 |
|
373 OilFunctionImpl* __oil_function_impl_conv_u32_s16_c() { |
|
374 return &_oil_function_impl_conv_u32_s16_c; |
|
375 } |
|
376 #endif |
|
377 |
|
378 CONV_DEFINE_CAST(u32,u8) |
|
379 #ifdef __SYMBIAN32__ |
|
380 |
|
381 OilFunctionImpl* __oil_function_impl_conv_u32_u8_c() { |
|
382 return &_oil_function_impl_conv_u32_u8_c; |
|
383 } |
|
384 #endif |
|
385 |
|
386 CONV_DEFINE_CAST(u32,u16) |
|
387 #ifdef __SYMBIAN32__ |
|
388 |
|
389 OilFunctionImpl* __oil_function_impl_conv_u32_u16_c() { |
|
390 return &_oil_function_impl_conv_u32_u16_c; |
|
391 } |
|
392 #endif |
|
393 |
|
394 CONV_DEFINE_CAST(u32,s32); |
|
395 #ifdef __SYMBIAN32__ |
|
396 |
|
397 OilFunctionImpl* __oil_function_impl_conv_u32_s32_c() { |
|
398 return &_oil_function_impl_conv_u32_s32_c; |
|
399 } |
|
400 #endif |
|
401 |
|
402 CONV_DEFINE_FLOAT(u32,f32); |
|
403 #ifdef __SYMBIAN32__ |
|
404 |
|
405 OilFunctionImpl* __oil_function_impl_conv_u32_f32_c() { |
|
406 return &_oil_function_impl_conv_u32_f32_c; |
|
407 } |
|
408 #endif |
|
409 |
|
410 CONV_DEFINE_FLOAT(u32,f64); |
|
411 #ifdef __SYMBIAN32__ |
|
412 |
|
413 OilFunctionImpl* __oil_function_impl_conv_u32_f64_c() { |
|
414 return &_oil_function_impl_conv_u32_f64_c; |
|
415 } |
|
416 #endif |
|
417 |
|
418 CONV_DEFINE_CAST(f32,s8) |
|
419 #ifdef __SYMBIAN32__ |
|
420 |
|
421 OilFunctionImpl* __oil_function_impl_conv_f32_s8_c() { |
|
422 return &_oil_function_impl_conv_f32_s8_c; |
|
423 } |
|
424 #endif |
|
425 |
|
426 CONV_DEFINE_CAST(f32,s16) |
|
427 #ifdef __SYMBIAN32__ |
|
428 |
|
429 OilFunctionImpl* __oil_function_impl_conv_f32_s16_c() { |
|
430 return &_oil_function_impl_conv_f32_s16_c; |
|
431 } |
|
432 #endif |
|
433 |
|
434 CONV_DEFINE_CAST(f32,u8) |
|
435 #ifdef __SYMBIAN32__ |
|
436 |
|
437 OilFunctionImpl* __oil_function_impl_conv_f32_u8_c() { |
|
438 return &_oil_function_impl_conv_f32_u8_c; |
|
439 } |
|
440 #endif |
|
441 |
|
442 CONV_DEFINE_CAST(f32,u16) |
|
443 #ifdef __SYMBIAN32__ |
|
444 |
|
445 OilFunctionImpl* __oil_function_impl_conv_f32_u16_c() { |
|
446 return &_oil_function_impl_conv_f32_u16_c; |
|
447 } |
|
448 #endif |
|
449 |
|
450 CONV_DEFINE_CAST(f32,s32); |
|
451 #ifdef __SYMBIAN32__ |
|
452 |
|
453 OilFunctionImpl* __oil_function_impl_conv_f32_s32_c() { |
|
454 return &_oil_function_impl_conv_f32_s32_c; |
|
455 } |
|
456 #endif |
|
457 |
|
458 CONV_DEFINE_CAST(f32,u32); |
|
459 #ifdef __SYMBIAN32__ |
|
460 |
|
461 OilFunctionImpl* __oil_function_impl_conv_f32_u32_c() { |
|
462 return &_oil_function_impl_conv_f32_u32_c; |
|
463 } |
|
464 #endif |
|
465 |
|
466 CONV_DEFINE_CAST(f32,f64); |
|
467 #ifdef __SYMBIAN32__ |
|
468 |
|
469 OilFunctionImpl* __oil_function_impl_conv_f32_f64_c() { |
|
470 return &_oil_function_impl_conv_f32_f64_c; |
|
471 } |
|
472 #endif |
|
473 |
|
474 CONV_DEFINE_CAST(f64,s8) |
|
475 #ifdef __SYMBIAN32__ |
|
476 |
|
477 OilFunctionImpl* __oil_function_impl_conv_f64_s8_c() { |
|
478 return &_oil_function_impl_conv_f64_s8_c; |
|
479 } |
|
480 #endif |
|
481 |
|
482 CONV_DEFINE_CAST(f64,u8) |
|
483 #ifdef __SYMBIAN32__ |
|
484 |
|
485 OilFunctionImpl* __oil_function_impl_conv_f64_u8_c() { |
|
486 return &_oil_function_impl_conv_f64_u8_c; |
|
487 } |
|
488 #endif |
|
489 |
|
490 CONV_DEFINE_CAST(f64,s16) |
|
491 #ifdef __SYMBIAN32__ |
|
492 |
|
493 OilFunctionImpl* __oil_function_impl_conv_f64_s16_c() { |
|
494 return &_oil_function_impl_conv_f64_s16_c; |
|
495 } |
|
496 #endif |
|
497 |
|
498 CONV_DEFINE_CAST(f64,u16) |
|
499 #ifdef __SYMBIAN32__ |
|
500 |
|
501 OilFunctionImpl* __oil_function_impl_conv_f64_u16_c() { |
|
502 return &_oil_function_impl_conv_f64_u16_c; |
|
503 } |
|
504 #endif |
|
505 |
|
506 CONV_DEFINE_CAST(f64,s32) |
|
507 #ifdef __SYMBIAN32__ |
|
508 |
|
509 OilFunctionImpl* __oil_function_impl_conv_f64_s32_c() { |
|
510 return &_oil_function_impl_conv_f64_s32_c; |
|
511 } |
|
512 #endif |
|
513 |
|
514 CONV_DEFINE_CAST(f64,u32) |
|
515 #ifdef __SYMBIAN32__ |
|
516 |
|
517 OilFunctionImpl* __oil_function_impl_conv_f64_u32_c() { |
|
518 return &_oil_function_impl_conv_f64_u32_c; |
|
519 } |
|
520 #endif |
|
521 |
|
522 CONV_DEFINE_CAST(f64,f32) |
|
523 #ifdef __SYMBIAN32__ |
|
524 |
|
525 OilFunctionImpl* __oil_function_impl_conv_f64_f32_c() { |
|
526 return &_oil_function_impl_conv_f64_f32_c; |
|
527 } |
|
528 #endif |
|
529 |
|
530 |
|
531 |
|
532 |
|
533 #define CLIPCONV_DEFINE_BOTH(desttype,srctype) \ |
|
534 static void clipconv_ ## desttype ## _ ## srctype ## _c ( \ |
|
535 oil_type_ ## desttype *dest, \ |
|
536 int dest_stride, \ |
|
537 const oil_type_ ## srctype *src, \ |
|
538 int src_stride, int n) \ |
|
539 { \ |
|
540 int i; \ |
|
541 oil_type_ ## srctype x; \ |
|
542 for(i=0;i<n;i++){ \ |
|
543 x = *src; \ |
|
544 if(x<oil_type_min_ ## desttype) x=oil_type_min_ ## desttype; \ |
|
545 if(x>oil_type_max_ ## desttype) x=oil_type_max_ ## desttype; \ |
|
546 *dest = x; \ |
|
547 dest = OIL_OFFSET(dest, dest_stride); \ |
|
548 src = OIL_OFFSET(src, src_stride); \ |
|
549 } \ |
|
550 } \ |
|
551 OIL_DEFINE_IMPL(clipconv_ ## desttype ## _ ## srctype ## _c, \ |
|
552 clipconv_ ## desttype ## _ ## srctype); |
|
553 |
|
554 #define CLIPCONV_DEFINE_UPPER(desttype,srctype) \ |
|
555 static void clipconv_ ## desttype ## _ ## srctype ## _c ( \ |
|
556 oil_type_ ## desttype *dest, \ |
|
557 int dest_stride, \ |
|
558 const oil_type_ ## srctype *src, \ |
|
559 int src_stride, int n) \ |
|
560 { \ |
|
561 int i; \ |
|
562 oil_type_ ## srctype x; \ |
|
563 for(i=0;i<n;i++){ \ |
|
564 x = *src; \ |
|
565 if(x>oil_type_max_ ## desttype) x=oil_type_max_ ## desttype; \ |
|
566 *dest = x; \ |
|
567 dest = OIL_OFFSET(dest, dest_stride); \ |
|
568 src = OIL_OFFSET(src, src_stride); \ |
|
569 } \ |
|
570 } \ |
|
571 OIL_DEFINE_IMPL(clipconv_ ## desttype ## _ ## srctype ## _c, \ |
|
572 clipconv_ ## desttype ## _ ## srctype); |
|
573 |
|
574 #define CLIPCONV_DEFINE_LOWER(desttype,srctype) \ |
|
575 static void clipconv_ ## desttype ## _ ## srctype ## _c ( \ |
|
576 oil_type_ ## desttype *dest, \ |
|
577 int dest_stride, \ |
|
578 const oil_type_ ## srctype *src, \ |
|
579 int src_stride, int n) \ |
|
580 { \ |
|
581 int i; \ |
|
582 oil_type_ ## srctype x; \ |
|
583 for(i=0;i<n;i++){ \ |
|
584 x = *src; \ |
|
585 if(x<oil_type_min_ ## desttype) x=oil_type_min_ ## desttype; \ |
|
586 *dest = x; \ |
|
587 dest = OIL_OFFSET(dest, dest_stride); \ |
|
588 src = OIL_OFFSET(src, src_stride); \ |
|
589 } \ |
|
590 } \ |
|
591 OIL_DEFINE_IMPL(clipconv_ ## desttype ## _ ## srctype ## _c, \ |
|
592 clipconv_ ## desttype ## _ ## srctype); |
|
593 |
|
594 #ifdef HAVE_RINT |
|
595 #define CLIPCONV_DEFINE_FLOAT(desttype,srctype) \ |
|
596 static void clipconv_ ## desttype ## _ ## srctype ## _c ( \ |
|
597 oil_type_ ## desttype *dest, \ |
|
598 int dest_stride, \ |
|
599 const oil_type_ ## srctype *src, \ |
|
600 int src_stride, int n) \ |
|
601 { \ |
|
602 int i; \ |
|
603 oil_type_ ## srctype x; \ |
|
604 for(i=0;i<n;i++){ \ |
|
605 x = *src; \ |
|
606 if(x<oil_type_min_ ## desttype) x=oil_type_min_ ## desttype; \ |
|
607 if(x>oil_type_max_ ## desttype) x=oil_type_max_ ## desttype; \ |
|
608 *dest = rint(x); \ |
|
609 dest = OIL_OFFSET(dest, dest_stride); \ |
|
610 src = OIL_OFFSET(src, src_stride); \ |
|
611 } \ |
|
612 } \ |
|
613 OIL_DEFINE_IMPL(clipconv_ ## desttype ## _ ## srctype ## _c, \ |
|
614 clipconv_ ## desttype ## _ ## srctype); |
|
615 #else |
|
616 #define CLIPCONV_DEFINE_FLOAT(desttype,srctype) |
|
617 #endif |
|
618 |
|
619 /* clip upper */ |
|
620 CLIPCONV_DEFINE_UPPER(s8,u8); |
|
621 CLIPCONV_DEFINE_UPPER(s8,u16); |
|
622 CLIPCONV_DEFINE_UPPER(s8,u32); |
|
623 CLIPCONV_DEFINE_UPPER(u8,u32); |
|
624 CLIPCONV_DEFINE_UPPER(u8,u16); |
|
625 CLIPCONV_DEFINE_UPPER(s16,u16); |
|
626 CLIPCONV_DEFINE_UPPER(s16,u32); |
|
627 CLIPCONV_DEFINE_UPPER(s32,u32); |
|
628 CLIPCONV_DEFINE_UPPER(u16,u32); |
|
629 |
|
630 /* clip both */ |
|
631 CLIPCONV_DEFINE_BOTH(s8,s16); |
|
632 CLIPCONV_DEFINE_BOTH(s8,s32); |
|
633 CLIPCONV_DEFINE_BOTH(u8,s16); |
|
634 CLIPCONV_DEFINE_BOTH(u8,s32); |
|
635 CLIPCONV_DEFINE_BOTH(s16,s32); |
|
636 CLIPCONV_DEFINE_BOTH(u16,s32); |
|
637 |
|
638 /* clip lower */ |
|
639 CLIPCONV_DEFINE_LOWER(u8,s8); |
|
640 CLIPCONV_DEFINE_LOWER(u16,s16); |
|
641 CLIPCONV_DEFINE_LOWER(u32,s32); |
|
642 |
|
643 /* clip both, float */ |
|
644 CLIPCONV_DEFINE_FLOAT(s8,f32); |
|
645 CLIPCONV_DEFINE_FLOAT(s8,f64); |
|
646 CLIPCONV_DEFINE_FLOAT(u8,f32); |
|
647 CLIPCONV_DEFINE_FLOAT(u8,f64); |
|
648 CLIPCONV_DEFINE_FLOAT(s16,f32); |
|
649 CLIPCONV_DEFINE_FLOAT(s16,f64); |
|
650 CLIPCONV_DEFINE_FLOAT(u16,f32); |
|
651 CLIPCONV_DEFINE_FLOAT(u16,f64); |
|
652 CLIPCONV_DEFINE_FLOAT(s32,f32); |
|
653 CLIPCONV_DEFINE_FLOAT(s32,f64); |
|
654 CLIPCONV_DEFINE_FLOAT(u32,f32); |
|
655 CLIPCONV_DEFINE_FLOAT(u32,f64); |
|
656 |
|
657 |
|
658 |
|
659 |
|
660 #define CONV_DEFINE_CAST_UNROLL2(desttype,srctype) \ |
|
661 static void conv_ ## desttype ## _ ## srctype ## _unroll2 ( \ |
|
662 oil_type_ ## desttype *dest, \ |
|
663 int dest_stride, \ |
|
664 const oil_type_ ## srctype *src, \ |
|
665 int src_stride, int n) \ |
|
666 { \ |
|
667 int i; \ |
|
668 if(n&1){ \ |
|
669 *dest = *src; \ |
|
670 dest = OIL_OFFSET(dest, dest_stride); \ |
|
671 src = OIL_OFFSET(src, src_stride); \ |
|
672 } \ |
|
673 n>>=1; \ |
|
674 for(i=0;i<n;i++){ \ |
|
675 *dest = *src; \ |
|
676 dest = OIL_OFFSET(dest, dest_stride); \ |
|
677 src = OIL_OFFSET(src, src_stride); \ |
|
678 *dest = *src; \ |
|
679 dest = OIL_OFFSET(dest, dest_stride); \ |
|
680 src = OIL_OFFSET(src, src_stride); \ |
|
681 } \ |
|
682 } \ |
|
683 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _unroll2, \ |
|
684 conv_ ## desttype ## _ ## srctype); |
|
685 |
|
686 #ifdef HAVE_RINT |
|
687 #define CONV_DEFINE_FLOAT_UNROLL2(desttype,srctype) \ |
|
688 static void conv_ ## desttype ## _ ## srctype ## _unroll2 ( \ |
|
689 oil_type_ ## desttype *dest, \ |
|
690 int dest_stride, \ |
|
691 const oil_type_ ## srctype *src, \ |
|
692 int src_stride, int n) \ |
|
693 { \ |
|
694 int i; \ |
|
695 if(n&1){ \ |
|
696 *dest = rint(*src); \ |
|
697 dest = OIL_OFFSET(dest, dest_stride); \ |
|
698 src = OIL_OFFSET(src, src_stride); \ |
|
699 } \ |
|
700 n>>=1; \ |
|
701 for(i=0;i<n;i++){ \ |
|
702 *dest = rint(*src); \ |
|
703 dest = OIL_OFFSET(dest, dest_stride); \ |
|
704 src = OIL_OFFSET(src, src_stride); \ |
|
705 *dest = rint(*src); \ |
|
706 dest = OIL_OFFSET(dest, dest_stride); \ |
|
707 src = OIL_OFFSET(src, src_stride); \ |
|
708 } \ |
|
709 } \ |
|
710 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _unroll2, \ |
|
711 conv_ ## desttype ## _ ## srctype); |
|
712 #else |
|
713 #define CONV_DEFINE_FLOAT_UNROLL2(desttype,srctype) |
|
714 #endif |
|
715 |
|
716 CONV_DEFINE_CAST_UNROLL2(s8,u8); |
|
717 CONV_DEFINE_CAST_UNROLL2(s8,s16); |
|
718 CONV_DEFINE_CAST_UNROLL2(s8,u16); |
|
719 CONV_DEFINE_CAST_UNROLL2(s8,s32); |
|
720 CONV_DEFINE_CAST_UNROLL2(s8,u32); |
|
721 CONV_DEFINE_FLOAT_UNROLL2(s8,f32); |
|
722 CONV_DEFINE_FLOAT_UNROLL2(s8,f64); |
|
723 |
|
724 CONV_DEFINE_CAST_UNROLL2(u8,s8); |
|
725 CONV_DEFINE_CAST_UNROLL2(u8,s16); |
|
726 CONV_DEFINE_CAST_UNROLL2(u8,u16); |
|
727 CONV_DEFINE_CAST_UNROLL2(u8,s32); |
|
728 CONV_DEFINE_CAST_UNROLL2(u8,u32); |
|
729 CONV_DEFINE_FLOAT_UNROLL2(u8,f32); |
|
730 CONV_DEFINE_FLOAT_UNROLL2(u8,f64); |
|
731 |
|
732 CONV_DEFINE_CAST_UNROLL2(s16,s8) |
|
733 CONV_DEFINE_CAST_UNROLL2(s16,u8) |
|
734 CONV_DEFINE_CAST_UNROLL2(s16,u16); |
|
735 CONV_DEFINE_CAST_UNROLL2(s16,s32); |
|
736 CONV_DEFINE_CAST_UNROLL2(s16,u32); |
|
737 CONV_DEFINE_FLOAT_UNROLL2(s16,f32); |
|
738 CONV_DEFINE_FLOAT_UNROLL2(s16,f64); |
|
739 |
|
740 CONV_DEFINE_CAST_UNROLL2(u16,s8) |
|
741 CONV_DEFINE_CAST_UNROLL2(u16,u8) |
|
742 CONV_DEFINE_CAST_UNROLL2(u16,s16); |
|
743 CONV_DEFINE_CAST_UNROLL2(u16,s32); |
|
744 CONV_DEFINE_CAST_UNROLL2(u16,u32); |
|
745 CONV_DEFINE_FLOAT_UNROLL2(u16,f32); |
|
746 CONV_DEFINE_FLOAT_UNROLL2(u16,f64); |
|
747 |
|
748 CONV_DEFINE_CAST_UNROLL2(s32,s8) |
|
749 CONV_DEFINE_CAST_UNROLL2(s32,s16) |
|
750 CONV_DEFINE_CAST_UNROLL2(s32,u8) |
|
751 CONV_DEFINE_CAST_UNROLL2(s32,u16) |
|
752 CONV_DEFINE_CAST_UNROLL2(s32,u32); |
|
753 CONV_DEFINE_FLOAT_UNROLL2(s32,f32); |
|
754 CONV_DEFINE_FLOAT_UNROLL2(s32,f64); |
|
755 |
|
756 CONV_DEFINE_CAST_UNROLL2(u32,s8) |
|
757 CONV_DEFINE_CAST_UNROLL2(u32,s16) |
|
758 CONV_DEFINE_CAST_UNROLL2(u32,u8) |
|
759 CONV_DEFINE_CAST_UNROLL2(u32,u16) |
|
760 CONV_DEFINE_CAST_UNROLL2(u32,s32); |
|
761 CONV_DEFINE_FLOAT_UNROLL2(u32,f32); |
|
762 CONV_DEFINE_FLOAT_UNROLL2(u32,f64); |
|
763 |
|
764 CONV_DEFINE_CAST_UNROLL2(f32,s8) |
|
765 CONV_DEFINE_CAST_UNROLL2(f32,s16) |
|
766 CONV_DEFINE_CAST_UNROLL2(f32,u8) |
|
767 CONV_DEFINE_CAST_UNROLL2(f32,u16) |
|
768 CONV_DEFINE_CAST_UNROLL2(f32,s32); |
|
769 CONV_DEFINE_CAST_UNROLL2(f32,u32); |
|
770 CONV_DEFINE_CAST_UNROLL2(f32,f64); |
|
771 |
|
772 CONV_DEFINE_CAST_UNROLL2(f64,s8) |
|
773 CONV_DEFINE_CAST_UNROLL2(f64,u8) |
|
774 CONV_DEFINE_CAST_UNROLL2(f64,s16) |
|
775 CONV_DEFINE_CAST_UNROLL2(f64,u16) |
|
776 CONV_DEFINE_CAST_UNROLL2(f64,s32) |
|
777 CONV_DEFINE_CAST_UNROLL2(f64,u32) |
|
778 CONV_DEFINE_CAST_UNROLL2(f64,f32) |
|
779 |
|
780 |
|
781 |
|
782 #define CONV_DEFINE_CAST_UNROLL4(desttype,srctype) \ |
|
783 static void conv_ ## desttype ## _ ## srctype ## _unroll4 ( \ |
|
784 oil_type_ ## desttype *dest, \ |
|
785 int dest_stride, \ |
|
786 const oil_type_ ## srctype *src, \ |
|
787 int src_stride, int n) \ |
|
788 { \ |
|
789 int i; \ |
|
790 if(n&1){ \ |
|
791 *dest = *src; \ |
|
792 dest = OIL_OFFSET(dest, dest_stride); \ |
|
793 src = OIL_OFFSET(src, src_stride); \ |
|
794 } \ |
|
795 if(n&2){ \ |
|
796 *dest = *src; \ |
|
797 dest = OIL_OFFSET(dest, dest_stride); \ |
|
798 src = OIL_OFFSET(src, src_stride); \ |
|
799 *dest = *src; \ |
|
800 dest = OIL_OFFSET(dest, dest_stride); \ |
|
801 src = OIL_OFFSET(src, src_stride); \ |
|
802 } \ |
|
803 n>>=2; \ |
|
804 for(i=0;i<n;i++){ \ |
|
805 *dest = *src; \ |
|
806 dest = OIL_OFFSET(dest, dest_stride); \ |
|
807 src = OIL_OFFSET(src, src_stride); \ |
|
808 *dest = *src; \ |
|
809 dest = OIL_OFFSET(dest, dest_stride); \ |
|
810 src = OIL_OFFSET(src, src_stride); \ |
|
811 *dest = *src; \ |
|
812 dest = OIL_OFFSET(dest, dest_stride); \ |
|
813 src = OIL_OFFSET(src, src_stride); \ |
|
814 *dest = *src; \ |
|
815 dest = OIL_OFFSET(dest, dest_stride); \ |
|
816 src = OIL_OFFSET(src, src_stride); \ |
|
817 } \ |
|
818 } \ |
|
819 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _unroll4, \ |
|
820 conv_ ## desttype ## _ ## srctype); |
|
821 |
|
822 #ifdef HAVE_RINT |
|
823 #define CONV_DEFINE_FLOAT_UNROLL4(desttype,srctype) \ |
|
824 static void conv_ ## desttype ## _ ## srctype ## _unroll4 ( \ |
|
825 oil_type_ ## desttype *dest, \ |
|
826 int dest_stride, \ |
|
827 const oil_type_ ## srctype *src, \ |
|
828 int src_stride, int n) \ |
|
829 { \ |
|
830 int i; \ |
|
831 if(n&1){ \ |
|
832 *dest = rint(*src); \ |
|
833 dest = OIL_OFFSET(dest, dest_stride); \ |
|
834 src = OIL_OFFSET(src, src_stride); \ |
|
835 } \ |
|
836 if(n&2){ \ |
|
837 *dest = rint(*src); \ |
|
838 dest = OIL_OFFSET(dest, dest_stride); \ |
|
839 src = OIL_OFFSET(src, src_stride); \ |
|
840 *dest = rint(*src); \ |
|
841 dest = OIL_OFFSET(dest, dest_stride); \ |
|
842 src = OIL_OFFSET(src, src_stride); \ |
|
843 } \ |
|
844 n>>=2; \ |
|
845 for(i=0;i<n;i++){ \ |
|
846 *dest = rint(*src); \ |
|
847 dest = OIL_OFFSET(dest, dest_stride); \ |
|
848 src = OIL_OFFSET(src, src_stride); \ |
|
849 *dest = rint(*src); \ |
|
850 dest = OIL_OFFSET(dest, dest_stride); \ |
|
851 src = OIL_OFFSET(src, src_stride); \ |
|
852 *dest = rint(*src); \ |
|
853 dest = OIL_OFFSET(dest, dest_stride); \ |
|
854 src = OIL_OFFSET(src, src_stride); \ |
|
855 *dest = rint(*src); \ |
|
856 dest = OIL_OFFSET(dest, dest_stride); \ |
|
857 src = OIL_OFFSET(src, src_stride); \ |
|
858 } \ |
|
859 } \ |
|
860 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _unroll4, \ |
|
861 conv_ ## desttype ## _ ## srctype); |
|
862 #else |
|
863 #define CONV_DEFINE_FLOAT_UNROLL4(desttype,srctype) |
|
864 #endif |
|
865 |
|
866 CONV_DEFINE_CAST_UNROLL4(s8,u8); |
|
867 CONV_DEFINE_CAST_UNROLL4(s8,s16); |
|
868 CONV_DEFINE_CAST_UNROLL4(s8,u16); |
|
869 CONV_DEFINE_CAST_UNROLL4(s8,s32); |
|
870 CONV_DEFINE_CAST_UNROLL4(s8,u32); |
|
871 CONV_DEFINE_FLOAT_UNROLL4(s8,f32); |
|
872 CONV_DEFINE_FLOAT_UNROLL4(s8,f64); |
|
873 |
|
874 CONV_DEFINE_CAST_UNROLL4(u8,s8); |
|
875 CONV_DEFINE_CAST_UNROLL4(u8,s16); |
|
876 CONV_DEFINE_CAST_UNROLL4(u8,u16); |
|
877 CONV_DEFINE_CAST_UNROLL4(u8,s32); |
|
878 CONV_DEFINE_CAST_UNROLL4(u8,u32); |
|
879 CONV_DEFINE_FLOAT_UNROLL4(u8,f32); |
|
880 CONV_DEFINE_FLOAT_UNROLL4(u8,f64); |
|
881 |
|
882 CONV_DEFINE_CAST_UNROLL4(s16,s8) |
|
883 CONV_DEFINE_CAST_UNROLL4(s16,u8) |
|
884 CONV_DEFINE_CAST_UNROLL4(s16,u16); |
|
885 CONV_DEFINE_CAST_UNROLL4(s16,s32); |
|
886 CONV_DEFINE_CAST_UNROLL4(s16,u32); |
|
887 CONV_DEFINE_FLOAT_UNROLL4(s16,f32); |
|
888 CONV_DEFINE_FLOAT_UNROLL4(s16,f64); |
|
889 |
|
890 CONV_DEFINE_CAST_UNROLL4(u16,s8) |
|
891 CONV_DEFINE_CAST_UNROLL4(u16,u8) |
|
892 CONV_DEFINE_CAST_UNROLL4(u16,s16); |
|
893 CONV_DEFINE_CAST_UNROLL4(u16,s32); |
|
894 CONV_DEFINE_CAST_UNROLL4(u16,u32); |
|
895 CONV_DEFINE_FLOAT_UNROLL4(u16,f32); |
|
896 CONV_DEFINE_FLOAT_UNROLL4(u16,f64); |
|
897 |
|
898 CONV_DEFINE_CAST_UNROLL4(s32,s8) |
|
899 CONV_DEFINE_CAST_UNROLL4(s32,s16) |
|
900 CONV_DEFINE_CAST_UNROLL4(s32,u8) |
|
901 CONV_DEFINE_CAST_UNROLL4(s32,u16) |
|
902 CONV_DEFINE_CAST_UNROLL4(s32,u32); |
|
903 CONV_DEFINE_FLOAT_UNROLL4(s32,f32); |
|
904 CONV_DEFINE_FLOAT_UNROLL4(s32,f64); |
|
905 |
|
906 CONV_DEFINE_CAST_UNROLL4(u32,s8) |
|
907 CONV_DEFINE_CAST_UNROLL4(u32,s16) |
|
908 CONV_DEFINE_CAST_UNROLL4(u32,u8) |
|
909 CONV_DEFINE_CAST_UNROLL4(u32,u16) |
|
910 CONV_DEFINE_CAST_UNROLL4(u32,s32); |
|
911 CONV_DEFINE_FLOAT_UNROLL4(u32,f32); |
|
912 CONV_DEFINE_FLOAT_UNROLL4(u32,f64); |
|
913 |
|
914 CONV_DEFINE_CAST_UNROLL4(f32,s8) |
|
915 CONV_DEFINE_CAST_UNROLL4(f32,s16) |
|
916 CONV_DEFINE_CAST_UNROLL4(f32,u8) |
|
917 CONV_DEFINE_CAST_UNROLL4(f32,u16) |
|
918 CONV_DEFINE_CAST_UNROLL4(f32,s32); |
|
919 CONV_DEFINE_CAST_UNROLL4(f32,u32); |
|
920 CONV_DEFINE_CAST_UNROLL4(f32,f64); |
|
921 |
|
922 CONV_DEFINE_CAST_UNROLL4(f64,s8) |
|
923 CONV_DEFINE_CAST_UNROLL4(f64,u8) |
|
924 CONV_DEFINE_CAST_UNROLL4(f64,s16) |
|
925 CONV_DEFINE_CAST_UNROLL4(f64,u16) |
|
926 CONV_DEFINE_CAST_UNROLL4(f64,s32) |
|
927 CONV_DEFINE_CAST_UNROLL4(f64,u32) |
|
928 CONV_DEFINE_CAST_UNROLL4(f64,f32) |
|
929 |
|
930 |
|
931 #ifdef HAVE_RINTF |
|
932 |
|
933 #define CONV_DEFINE_FLOAT_RINTF(desttype,srctype) \ |
|
934 static void conv_ ## desttype ## _ ## srctype ## _rintf ( \ |
|
935 oil_type_ ## desttype *dest, \ |
|
936 int dest_stride, \ |
|
937 const oil_type_ ## srctype *src, \ |
|
938 int src_stride, int n) \ |
|
939 { \ |
|
940 int i; \ |
|
941 for(i=0;i<n;i++){ \ |
|
942 *dest = rintf(*src);\ |
|
943 dest = OIL_OFFSET(dest, dest_stride); \ |
|
944 src = OIL_OFFSET(src, src_stride); \ |
|
945 } \ |
|
946 } \ |
|
947 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _rintf, \ |
|
948 conv_ ## desttype ## _ ## srctype); |
|
949 |
|
950 CONV_DEFINE_FLOAT_RINTF(s8,f32); |
|
951 CONV_DEFINE_FLOAT_RINTF(u8,f32); |
|
952 CONV_DEFINE_FLOAT_RINTF(s16,f32); |
|
953 CONV_DEFINE_FLOAT_RINTF(u16,f32); |
|
954 CONV_DEFINE_FLOAT_RINTF(s32,f32); |
|
955 CONV_DEFINE_FLOAT_RINTF(u32,f32); |
|
956 |
|
957 #endif |
|
958 |
|
959 #ifdef HAVE_LRINT |
|
960 |
|
961 #define CONV_DEFINE_FLOAT_LRINT(desttype,srctype) \ |
|
962 static void conv_ ## desttype ## _ ## srctype ## _lrint ( \ |
|
963 oil_type_ ## desttype *dest, \ |
|
964 int dest_stride, \ |
|
965 const oil_type_ ## srctype *src, \ |
|
966 int src_stride, int n) \ |
|
967 { \ |
|
968 int i; \ |
|
969 for(i=0;i<n;i++){ \ |
|
970 *dest = lrint(*src); \ |
|
971 dest = OIL_OFFSET(dest, dest_stride); \ |
|
972 src = OIL_OFFSET(src, src_stride); \ |
|
973 } \ |
|
974 } \ |
|
975 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _lrint, \ |
|
976 conv_ ## desttype ## _ ## srctype); |
|
977 |
|
978 CONV_DEFINE_FLOAT_LRINT(s8,f32); |
|
979 CONV_DEFINE_FLOAT_LRINT(s8,f64); |
|
980 |
|
981 CONV_DEFINE_FLOAT_LRINT(u8,f32); |
|
982 CONV_DEFINE_FLOAT_LRINT(u8,f64); |
|
983 |
|
984 CONV_DEFINE_FLOAT_LRINT(s16,f32); |
|
985 CONV_DEFINE_FLOAT_LRINT(s16,f64); |
|
986 |
|
987 CONV_DEFINE_FLOAT_LRINT(u16,f32); |
|
988 CONV_DEFINE_FLOAT_LRINT(u16,f64); |
|
989 |
|
990 CONV_DEFINE_FLOAT_LRINT(s32,f32); |
|
991 CONV_DEFINE_FLOAT_LRINT(s32,f64); |
|
992 |
|
993 //CONV_DEFINE_FLOAT_LRINT(u32,f32); |
|
994 //CONV_DEFINE_FLOAT_LRINT(u32,f64); |
|
995 |
|
996 #endif |
|
997 |
|
998 #ifdef HAVE_LRINTF |
|
999 |
|
1000 #define CONV_DEFINE_FLOAT_LRINTF(desttype,srctype) \ |
|
1001 static void conv_ ## desttype ## _ ## srctype ## _lrintf ( \ |
|
1002 oil_type_ ## desttype *dest, \ |
|
1003 int dest_stride, \ |
|
1004 const oil_type_ ## srctype *src, \ |
|
1005 int src_stride, int n) \ |
|
1006 { \ |
|
1007 int i; \ |
|
1008 for(i=0;i<n;i++){ \ |
|
1009 *dest = lrintf(*src); \ |
|
1010 dest = OIL_OFFSET(dest, dest_stride); \ |
|
1011 src = OIL_OFFSET(src, src_stride); \ |
|
1012 } \ |
|
1013 } \ |
|
1014 OIL_DEFINE_IMPL(conv_ ## desttype ## _ ## srctype ## _lrintf, \ |
|
1015 conv_ ## desttype ## _ ## srctype); |
|
1016 |
|
1017 CONV_DEFINE_FLOAT_LRINTF(s8,f32); |
|
1018 CONV_DEFINE_FLOAT_LRINTF(u8,f32); |
|
1019 CONV_DEFINE_FLOAT_LRINTF(s16,f32); |
|
1020 CONV_DEFINE_FLOAT_LRINTF(u16,f32); |
|
1021 CONV_DEFINE_FLOAT_LRINTF(s32,f32); |
|
1022 //CONV_DEFINE_FLOAT_LRINTF(u32,f32); |
|
1023 |
|
1024 #endif |
|
1025 |
|
1026 |
|
1027 |
|
1028 #ifdef __SYMBIAN32__ |
|
1029 |
|
1030 OilFunctionImpl* __oil_function_impl_conv_s8_u8_unroll4() { |
|
1031 return &_oil_function_impl_conv_s8_u8_unroll4; |
|
1032 } |
|
1033 #endif |
|
1034 |
|
1035 #ifdef __SYMBIAN32__ |
|
1036 |
|
1037 OilFunctionImpl* __oil_function_impl_conv_s8_s16_unroll4() { |
|
1038 return &_oil_function_impl_conv_s8_s16_unroll4; |
|
1039 } |
|
1040 #endif |
|
1041 |
|
1042 #ifdef __SYMBIAN32__ |
|
1043 |
|
1044 OilFunctionImpl* __oil_function_impl_conv_s8_u16_unroll4() { |
|
1045 return &_oil_function_impl_conv_s8_u16_unroll4; |
|
1046 } |
|
1047 #endif |
|
1048 |
|
1049 #ifdef __SYMBIAN32__ |
|
1050 |
|
1051 OilFunctionImpl* __oil_function_impl_conv_s8_s32_unroll4() { |
|
1052 return &_oil_function_impl_conv_s8_s32_unroll4; |
|
1053 } |
|
1054 #endif |
|
1055 |
|
1056 #ifdef __SYMBIAN32__ |
|
1057 |
|
1058 OilFunctionImpl* __oil_function_impl_conv_s8_u32_unroll4() { |
|
1059 return &_oil_function_impl_conv_s8_u32_unroll4; |
|
1060 } |
|
1061 #endif |
|
1062 |
|
1063 #ifdef __SYMBIAN32__ |
|
1064 |
|
1065 OilFunctionImpl* __oil_function_impl_conv_s8_f32_unroll4() { |
|
1066 return &_oil_function_impl_conv_s8_f32_unroll4; |
|
1067 } |
|
1068 #endif |
|
1069 |
|
1070 #ifdef __SYMBIAN32__ |
|
1071 |
|
1072 OilFunctionImpl* __oil_function_impl_conv_s8_f64_unroll4() { |
|
1073 return &_oil_function_impl_conv_s8_f64_unroll4; |
|
1074 } |
|
1075 #endif |
|
1076 |
|
1077 #ifdef __SYMBIAN32__ |
|
1078 |
|
1079 OilFunctionImpl* __oil_function_impl_conv_u8_s8_unroll4() { |
|
1080 return &_oil_function_impl_conv_u8_s8_unroll4; |
|
1081 } |
|
1082 #endif |
|
1083 |
|
1084 #ifdef __SYMBIAN32__ |
|
1085 |
|
1086 OilFunctionImpl* __oil_function_impl_conv_u8_s16_unroll4() { |
|
1087 return &_oil_function_impl_conv_u8_s16_unroll4; |
|
1088 } |
|
1089 #endif |
|
1090 |
|
1091 #ifdef __SYMBIAN32__ |
|
1092 |
|
1093 OilFunctionImpl* __oil_function_impl_conv_u8_u16_unroll4() { |
|
1094 return &_oil_function_impl_conv_u8_u16_unroll4; |
|
1095 } |
|
1096 #endif |
|
1097 |
|
1098 #ifdef __SYMBIAN32__ |
|
1099 |
|
1100 OilFunctionImpl* __oil_function_impl_conv_u8_s32_unroll4() { |
|
1101 return &_oil_function_impl_conv_u8_s32_unroll4; |
|
1102 } |
|
1103 #endif |
|
1104 |
|
1105 #ifdef __SYMBIAN32__ |
|
1106 |
|
1107 OilFunctionImpl* __oil_function_impl_conv_u8_u32_unroll4() { |
|
1108 return &_oil_function_impl_conv_u8_u32_unroll4; |
|
1109 } |
|
1110 #endif |
|
1111 |
|
1112 #ifdef __SYMBIAN32__ |
|
1113 |
|
1114 OilFunctionImpl* __oil_function_impl_conv_u8_f32_unroll4() { |
|
1115 return &_oil_function_impl_conv_u8_f32_unroll4; |
|
1116 } |
|
1117 #endif |
|
1118 |
|
1119 #ifdef __SYMBIAN32__ |
|
1120 |
|
1121 OilFunctionImpl* __oil_function_impl_conv_u8_f64_unroll4() { |
|
1122 return &_oil_function_impl_conv_u8_f64_unroll4; |
|
1123 } |
|
1124 #endif |
|
1125 |
|
1126 #ifdef __SYMBIAN32__ |
|
1127 |
|
1128 OilFunctionImpl* __oil_function_impl_conv_s16_s8_unroll4() { |
|
1129 return &_oil_function_impl_conv_s16_s8_unroll4; |
|
1130 } |
|
1131 #endif |
|
1132 |
|
1133 #ifdef __SYMBIAN32__ |
|
1134 |
|
1135 OilFunctionImpl* __oil_function_impl_conv_s16_u8_unroll4() { |
|
1136 return &_oil_function_impl_conv_s16_u8_unroll4; |
|
1137 } |
|
1138 #endif |
|
1139 |
|
1140 #ifdef __SYMBIAN32__ |
|
1141 |
|
1142 OilFunctionImpl* __oil_function_impl_conv_s16_u16_unroll4() { |
|
1143 return &_oil_function_impl_conv_s16_u16_unroll4; |
|
1144 } |
|
1145 #endif |
|
1146 |
|
1147 #ifdef __SYMBIAN32__ |
|
1148 |
|
1149 OilFunctionImpl* __oil_function_impl_conv_s16_s32_unroll4() { |
|
1150 return &_oil_function_impl_conv_s16_s32_unroll4; |
|
1151 } |
|
1152 #endif |
|
1153 |
|
1154 #ifdef __SYMBIAN32__ |
|
1155 |
|
1156 OilFunctionImpl* __oil_function_impl_conv_s16_u32_unroll4() { |
|
1157 return &_oil_function_impl_conv_s16_u32_unroll4; |
|
1158 } |
|
1159 #endif |
|
1160 |
|
1161 #ifdef __SYMBIAN32__ |
|
1162 |
|
1163 OilFunctionImpl* __oil_function_impl_conv_s16_f32_unroll4() { |
|
1164 return &_oil_function_impl_conv_s16_f32_unroll4; |
|
1165 } |
|
1166 #endif |
|
1167 |
|
1168 #ifdef __SYMBIAN32__ |
|
1169 |
|
1170 OilFunctionImpl* __oil_function_impl_conv_s16_f64_unroll4() { |
|
1171 return &_oil_function_impl_conv_s16_f64_unroll4; |
|
1172 } |
|
1173 #endif |
|
1174 |
|
1175 #ifdef __SYMBIAN32__ |
|
1176 |
|
1177 OilFunctionImpl* __oil_function_impl_conv_u16_s8_unroll4() { |
|
1178 return &_oil_function_impl_conv_u16_s8_unroll4; |
|
1179 } |
|
1180 #endif |
|
1181 |
|
1182 #ifdef __SYMBIAN32__ |
|
1183 |
|
1184 OilFunctionImpl* __oil_function_impl_conv_u16_u8_unroll4() { |
|
1185 return &_oil_function_impl_conv_u16_u8_unroll4; |
|
1186 } |
|
1187 #endif |
|
1188 |
|
1189 #ifdef __SYMBIAN32__ |
|
1190 |
|
1191 OilFunctionImpl* __oil_function_impl_conv_u16_s16_unroll4() { |
|
1192 return &_oil_function_impl_conv_u16_s16_unroll4; |
|
1193 } |
|
1194 #endif |
|
1195 |
|
1196 #ifdef __SYMBIAN32__ |
|
1197 |
|
1198 OilFunctionImpl* __oil_function_impl_conv_u16_s32_unroll4() { |
|
1199 return &_oil_function_impl_conv_u16_s32_unroll4; |
|
1200 } |
|
1201 #endif |
|
1202 |
|
1203 #ifdef __SYMBIAN32__ |
|
1204 |
|
1205 OilFunctionImpl* __oil_function_impl_conv_u16_u32_unroll4() { |
|
1206 return &_oil_function_impl_conv_u16_u32_unroll4; |
|
1207 } |
|
1208 #endif |
|
1209 |
|
1210 #ifdef __SYMBIAN32__ |
|
1211 |
|
1212 OilFunctionImpl* __oil_function_impl_conv_u16_f32_unroll4() { |
|
1213 return &_oil_function_impl_conv_u16_f32_unroll4; |
|
1214 } |
|
1215 #endif |
|
1216 |
|
1217 #ifdef __SYMBIAN32__ |
|
1218 |
|
1219 OilFunctionImpl* __oil_function_impl_conv_u16_f64_unroll4() { |
|
1220 return &_oil_function_impl_conv_u16_f64_unroll4; |
|
1221 } |
|
1222 #endif |
|
1223 |
|
1224 #ifdef __SYMBIAN32__ |
|
1225 |
|
1226 OilFunctionImpl* __oil_function_impl_conv_s32_s8_unroll4() { |
|
1227 return &_oil_function_impl_conv_s32_s8_unroll4; |
|
1228 } |
|
1229 #endif |
|
1230 |
|
1231 #ifdef __SYMBIAN32__ |
|
1232 |
|
1233 OilFunctionImpl* __oil_function_impl_conv_s32_s16_unroll4() { |
|
1234 return &_oil_function_impl_conv_s32_s16_unroll4; |
|
1235 } |
|
1236 #endif |
|
1237 |
|
1238 #ifdef __SYMBIAN32__ |
|
1239 |
|
1240 OilFunctionImpl* __oil_function_impl_conv_s32_u8_unroll4() { |
|
1241 return &_oil_function_impl_conv_s32_u8_unroll4; |
|
1242 } |
|
1243 #endif |
|
1244 |
|
1245 #ifdef __SYMBIAN32__ |
|
1246 |
|
1247 OilFunctionImpl* __oil_function_impl_conv_s32_u16_unroll4() { |
|
1248 return &_oil_function_impl_conv_s32_u16_unroll4; |
|
1249 } |
|
1250 #endif |
|
1251 |
|
1252 #ifdef __SYMBIAN32__ |
|
1253 |
|
1254 OilFunctionImpl* __oil_function_impl_conv_s32_u32_unroll4() { |
|
1255 return &_oil_function_impl_conv_s32_u32_unroll4; |
|
1256 } |
|
1257 #endif |
|
1258 |
|
1259 #ifdef __SYMBIAN32__ |
|
1260 |
|
1261 OilFunctionImpl* __oil_function_impl_conv_s32_f32_unroll4() { |
|
1262 return &_oil_function_impl_conv_s32_f32_unroll4; |
|
1263 } |
|
1264 #endif |
|
1265 |
|
1266 #ifdef __SYMBIAN32__ |
|
1267 |
|
1268 OilFunctionImpl* __oil_function_impl_conv_s32_f64_unroll4() { |
|
1269 return &_oil_function_impl_conv_s32_f64_unroll4; |
|
1270 } |
|
1271 #endif |
|
1272 |
|
1273 #ifdef __SYMBIAN32__ |
|
1274 |
|
1275 OilFunctionImpl* __oil_function_impl_conv_u32_s8_unroll4() { |
|
1276 return &_oil_function_impl_conv_u32_s8_unroll4; |
|
1277 } |
|
1278 #endif |
|
1279 |
|
1280 #ifdef __SYMBIAN32__ |
|
1281 |
|
1282 OilFunctionImpl* __oil_function_impl_conv_u32_s16_unroll4() { |
|
1283 return &_oil_function_impl_conv_u32_s16_unroll4; |
|
1284 } |
|
1285 #endif |
|
1286 |
|
1287 #ifdef __SYMBIAN32__ |
|
1288 |
|
1289 OilFunctionImpl* __oil_function_impl_conv_u32_u8_unroll4() { |
|
1290 return &_oil_function_impl_conv_u32_u8_unroll4; |
|
1291 } |
|
1292 #endif |
|
1293 |
|
1294 #ifdef __SYMBIAN32__ |
|
1295 |
|
1296 OilFunctionImpl* __oil_function_impl_conv_u32_u16_unroll4() { |
|
1297 return &_oil_function_impl_conv_u32_u16_unroll4; |
|
1298 } |
|
1299 #endif |
|
1300 |
|
1301 #ifdef __SYMBIAN32__ |
|
1302 |
|
1303 OilFunctionImpl* __oil_function_impl_conv_u32_s32_unroll4() { |
|
1304 return &_oil_function_impl_conv_u32_s32_unroll4; |
|
1305 } |
|
1306 #endif |
|
1307 |
|
1308 #ifdef __SYMBIAN32__ |
|
1309 |
|
1310 OilFunctionImpl* __oil_function_impl_conv_u32_f32_unroll4() { |
|
1311 return &_oil_function_impl_conv_u32_f32_unroll4; |
|
1312 } |
|
1313 #endif |
|
1314 |
|
1315 #ifdef __SYMBIAN32__ |
|
1316 |
|
1317 OilFunctionImpl* __oil_function_impl_conv_u32_f64_unroll4() { |
|
1318 return &_oil_function_impl_conv_u32_f64_unroll4; |
|
1319 } |
|
1320 #endif |
|
1321 |
|
1322 #ifdef __SYMBIAN32__ |
|
1323 |
|
1324 OilFunctionImpl* __oil_function_impl_conv_f32_s8_unroll4() { |
|
1325 return &_oil_function_impl_conv_f32_s8_unroll4; |
|
1326 } |
|
1327 #endif |
|
1328 |
|
1329 #ifdef __SYMBIAN32__ |
|
1330 |
|
1331 OilFunctionImpl* __oil_function_impl_conv_f32_s16_unroll4() { |
|
1332 return &_oil_function_impl_conv_f32_s16_unroll4; |
|
1333 } |
|
1334 #endif |
|
1335 |
|
1336 #ifdef __SYMBIAN32__ |
|
1337 |
|
1338 OilFunctionImpl* __oil_function_impl_conv_f32_u8_unroll4() { |
|
1339 return &_oil_function_impl_conv_f32_u8_unroll4; |
|
1340 } |
|
1341 #endif |
|
1342 |
|
1343 #ifdef __SYMBIAN32__ |
|
1344 |
|
1345 OilFunctionImpl* __oil_function_impl_conv_f32_u16_unroll4() { |
|
1346 return &_oil_function_impl_conv_f32_u16_unroll4; |
|
1347 } |
|
1348 #endif |
|
1349 |
|
1350 #ifdef __SYMBIAN32__ |
|
1351 |
|
1352 OilFunctionImpl* __oil_function_impl_conv_f32_s32_unroll4() { |
|
1353 return &_oil_function_impl_conv_f32_s32_unroll4; |
|
1354 } |
|
1355 #endif |
|
1356 |
|
1357 #ifdef __SYMBIAN32__ |
|
1358 |
|
1359 OilFunctionImpl* __oil_function_impl_conv_f32_u32_unroll4() { |
|
1360 return &_oil_function_impl_conv_f32_u32_unroll4; |
|
1361 } |
|
1362 #endif |
|
1363 |
|
1364 #ifdef __SYMBIAN32__ |
|
1365 |
|
1366 OilFunctionImpl* __oil_function_impl_conv_f32_f64_unroll4() { |
|
1367 return &_oil_function_impl_conv_f32_f64_unroll4; |
|
1368 } |
|
1369 #endif |
|
1370 |
|
1371 #ifdef __SYMBIAN32__ |
|
1372 |
|
1373 OilFunctionImpl* __oil_function_impl_conv_f64_s8_unroll4() { |
|
1374 return &_oil_function_impl_conv_f64_s8_unroll4; |
|
1375 } |
|
1376 #endif |
|
1377 |
|
1378 #ifdef __SYMBIAN32__ |
|
1379 |
|
1380 OilFunctionImpl* __oil_function_impl_conv_f64_u8_unroll4() { |
|
1381 return &_oil_function_impl_conv_f64_u8_unroll4; |
|
1382 } |
|
1383 #endif |
|
1384 |
|
1385 #ifdef __SYMBIAN32__ |
|
1386 |
|
1387 OilFunctionImpl* __oil_function_impl_conv_f64_s16_unroll4() { |
|
1388 return &_oil_function_impl_conv_f64_s16_unroll4; |
|
1389 } |
|
1390 #endif |
|
1391 |
|
1392 #ifdef __SYMBIAN32__ |
|
1393 |
|
1394 OilFunctionImpl* __oil_function_impl_conv_f64_u16_unroll4() { |
|
1395 return &_oil_function_impl_conv_f64_u16_unroll4; |
|
1396 } |
|
1397 #endif |
|
1398 |
|
1399 #ifdef __SYMBIAN32__ |
|
1400 |
|
1401 OilFunctionImpl* __oil_function_impl_conv_f64_s32_unroll4() { |
|
1402 return &_oil_function_impl_conv_f64_s32_unroll4; |
|
1403 } |
|
1404 #endif |
|
1405 |
|
1406 #ifdef __SYMBIAN32__ |
|
1407 |
|
1408 OilFunctionImpl* __oil_function_impl_conv_f64_u32_unroll4() { |
|
1409 return &_oil_function_impl_conv_f64_u32_unroll4; |
|
1410 } |
|
1411 #endif |
|
1412 |
|
1413 #ifdef __SYMBIAN32__ |
|
1414 |
|
1415 OilFunctionImpl* __oil_function_impl_conv_f64_f32_unroll4() { |
|
1416 return &_oil_function_impl_conv_f64_f32_unroll4; |
|
1417 } |
|
1418 #endif |
|
1419 |
|
1420 #ifdef __SYMBIAN32__ |
|
1421 |
|
1422 OilFunctionImpl* __oil_function_impl_clipconv_s8_u8_c() { |
|
1423 return &_oil_function_impl_clipconv_s8_u8_c; |
|
1424 } |
|
1425 #endif |
|
1426 |
|
1427 #ifdef __SYMBIAN32__ |
|
1428 |
|
1429 OilFunctionImpl* __oil_function_impl_clipconv_s8_u16_c() { |
|
1430 return &_oil_function_impl_clipconv_s8_u16_c; |
|
1431 } |
|
1432 #endif |
|
1433 |
|
1434 #ifdef __SYMBIAN32__ |
|
1435 |
|
1436 OilFunctionImpl* __oil_function_impl_clipconv_s8_u32_c() { |
|
1437 return &_oil_function_impl_clipconv_s8_u32_c; |
|
1438 } |
|
1439 #endif |
|
1440 |
|
1441 #ifdef __SYMBIAN32__ |
|
1442 |
|
1443 OilFunctionImpl* __oil_function_impl_clipconv_u8_u32_c() { |
|
1444 return &_oil_function_impl_clipconv_u8_u32_c; |
|
1445 } |
|
1446 #endif |
|
1447 |
|
1448 #ifdef __SYMBIAN32__ |
|
1449 |
|
1450 OilFunctionImpl* __oil_function_impl_clipconv_u8_u16_c() { |
|
1451 return &_oil_function_impl_clipconv_u8_u16_c; |
|
1452 } |
|
1453 #endif |
|
1454 |
|
1455 #ifdef __SYMBIAN32__ |
|
1456 |
|
1457 OilFunctionImpl* __oil_function_impl_clipconv_s16_u16_c() { |
|
1458 return &_oil_function_impl_clipconv_s16_u16_c; |
|
1459 } |
|
1460 #endif |
|
1461 |
|
1462 #ifdef __SYMBIAN32__ |
|
1463 |
|
1464 OilFunctionImpl* __oil_function_impl_clipconv_s16_u32_c() { |
|
1465 return &_oil_function_impl_clipconv_s16_u32_c; |
|
1466 } |
|
1467 #endif |
|
1468 |
|
1469 #ifdef __SYMBIAN32__ |
|
1470 |
|
1471 OilFunctionImpl* __oil_function_impl_clipconv_s32_u32_c() { |
|
1472 return &_oil_function_impl_clipconv_s32_u32_c; |
|
1473 } |
|
1474 #endif |
|
1475 |
|
1476 #ifdef __SYMBIAN32__ |
|
1477 |
|
1478 OilFunctionImpl* __oil_function_impl_clipconv_u16_u32_c() { |
|
1479 return &_oil_function_impl_clipconv_u16_u32_c; |
|
1480 } |
|
1481 #endif |
|
1482 |
|
1483 #ifdef __SYMBIAN32__ |
|
1484 |
|
1485 OilFunctionImpl* __oil_function_impl_clipconv_s8_s16_c() { |
|
1486 return &_oil_function_impl_clipconv_s8_s16_c; |
|
1487 } |
|
1488 #endif |
|
1489 |
|
1490 #ifdef __SYMBIAN32__ |
|
1491 |
|
1492 OilFunctionImpl* __oil_function_impl_clipconv_s8_s32_c() { |
|
1493 return &_oil_function_impl_clipconv_s8_s32_c; |
|
1494 } |
|
1495 #endif |
|
1496 |
|
1497 #ifdef __SYMBIAN32__ |
|
1498 |
|
1499 OilFunctionImpl* __oil_function_impl_clipconv_u8_s16_c() { |
|
1500 return &_oil_function_impl_clipconv_u8_s16_c; |
|
1501 } |
|
1502 #endif |
|
1503 |
|
1504 #ifdef __SYMBIAN32__ |
|
1505 |
|
1506 OilFunctionImpl* __oil_function_impl_clipconv_u8_s32_c() { |
|
1507 return &_oil_function_impl_clipconv_u8_s32_c; |
|
1508 } |
|
1509 #endif |
|
1510 |
|
1511 #ifdef __SYMBIAN32__ |
|
1512 |
|
1513 OilFunctionImpl* __oil_function_impl_clipconv_s16_s32_c() { |
|
1514 return &_oil_function_impl_clipconv_s16_s32_c; |
|
1515 } |
|
1516 #endif |
|
1517 |
|
1518 #ifdef __SYMBIAN32__ |
|
1519 |
|
1520 OilFunctionImpl* __oil_function_impl_clipconv_u16_s32_c() { |
|
1521 return &_oil_function_impl_clipconv_u16_s32_c; |
|
1522 } |
|
1523 #endif |
|
1524 |
|
1525 #ifdef __SYMBIAN32__ |
|
1526 |
|
1527 OilFunctionImpl* __oil_function_impl_clipconv_u8_s8_c() { |
|
1528 return &_oil_function_impl_clipconv_u8_s8_c; |
|
1529 } |
|
1530 #endif |
|
1531 |
|
1532 #ifdef __SYMBIAN32__ |
|
1533 |
|
1534 OilFunctionImpl* __oil_function_impl_clipconv_u16_s16_c() { |
|
1535 return &_oil_function_impl_clipconv_u16_s16_c; |
|
1536 } |
|
1537 #endif |
|
1538 |
|
1539 #ifdef __SYMBIAN32__ |
|
1540 |
|
1541 OilFunctionImpl* __oil_function_impl_clipconv_u32_s32_c() { |
|
1542 return &_oil_function_impl_clipconv_u32_s32_c; |
|
1543 } |
|
1544 #endif |
|
1545 |
|
1546 #ifdef __SYMBIAN32__ |
|
1547 |
|
1548 OilFunctionImpl* __oil_function_impl_clipconv_s8_f32_c() { |
|
1549 return &_oil_function_impl_clipconv_s8_f32_c; |
|
1550 } |
|
1551 #endif |
|
1552 |
|
1553 #ifdef __SYMBIAN32__ |
|
1554 |
|
1555 OilFunctionImpl* __oil_function_impl_clipconv_s8_f64_c() { |
|
1556 return &_oil_function_impl_clipconv_s8_f64_c; |
|
1557 } |
|
1558 #endif |
|
1559 |
|
1560 #ifdef __SYMBIAN32__ |
|
1561 |
|
1562 OilFunctionImpl* __oil_function_impl_clipconv_u8_f32_c() { |
|
1563 return &_oil_function_impl_clipconv_u8_f32_c; |
|
1564 } |
|
1565 #endif |
|
1566 |
|
1567 #ifdef __SYMBIAN32__ |
|
1568 |
|
1569 OilFunctionImpl* __oil_function_impl_clipconv_u8_f64_c() { |
|
1570 return &_oil_function_impl_clipconv_u8_f64_c; |
|
1571 } |
|
1572 #endif |
|
1573 |
|
1574 #ifdef __SYMBIAN32__ |
|
1575 |
|
1576 OilFunctionImpl* __oil_function_impl_clipconv_s16_f32_c() { |
|
1577 return &_oil_function_impl_clipconv_s16_f32_c; |
|
1578 } |
|
1579 #endif |
|
1580 |
|
1581 #ifdef __SYMBIAN32__ |
|
1582 |
|
1583 OilFunctionImpl* __oil_function_impl_clipconv_s16_f64_c() { |
|
1584 return &_oil_function_impl_clipconv_s16_f64_c; |
|
1585 } |
|
1586 #endif |
|
1587 |
|
1588 #ifdef __SYMBIAN32__ |
|
1589 |
|
1590 OilFunctionImpl* __oil_function_impl_clipconv_u16_f32_c() { |
|
1591 return &_oil_function_impl_clipconv_u16_f32_c; |
|
1592 } |
|
1593 #endif |
|
1594 |
|
1595 #ifdef __SYMBIAN32__ |
|
1596 |
|
1597 OilFunctionImpl* __oil_function_impl_clipconv_u16_f64_c() { |
|
1598 return &_oil_function_impl_clipconv_u16_f64_c; |
|
1599 } |
|
1600 #endif |
|
1601 |
|
1602 #ifdef __SYMBIAN32__ |
|
1603 |
|
1604 OilFunctionImpl* __oil_function_impl_clipconv_s32_f32_c() { |
|
1605 return &_oil_function_impl_clipconv_s32_f32_c; |
|
1606 } |
|
1607 #endif |
|
1608 |
|
1609 #ifdef __SYMBIAN32__ |
|
1610 |
|
1611 OilFunctionImpl* __oil_function_impl_clipconv_s32_f64_c() { |
|
1612 return &_oil_function_impl_clipconv_s32_f64_c; |
|
1613 } |
|
1614 #endif |
|
1615 |
|
1616 #ifdef __SYMBIAN32__ |
|
1617 |
|
1618 OilFunctionImpl* __oil_function_impl_clipconv_u32_f32_c() { |
|
1619 return &_oil_function_impl_clipconv_u32_f32_c; |
|
1620 } |
|
1621 #endif |
|
1622 |
|
1623 #ifdef __SYMBIAN32__ |
|
1624 |
|
1625 OilFunctionImpl* __oil_function_impl_clipconv_u32_f64_c() { |
|
1626 return &_oil_function_impl_clipconv_u32_f64_c; |
|
1627 } |
|
1628 #endif |
|
1629 |
|
1630 #ifdef __SYMBIAN32__ |
|
1631 |
|
1632 OilFunctionImpl* __oil_function_impl_conv_s8_u8_unroll2() { |
|
1633 return &_oil_function_impl_conv_s8_u8_unroll2; |
|
1634 } |
|
1635 #endif |
|
1636 #ifdef __SYMBIAN32__ |
|
1637 |
|
1638 OilFunctionImpl* __oil_function_impl_conv_s8_s16_unroll2() { |
|
1639 return &_oil_function_impl_conv_s8_s16_unroll2; |
|
1640 } |
|
1641 #endif |
|
1642 |
|
1643 #ifdef __SYMBIAN32__ |
|
1644 |
|
1645 OilFunctionImpl* __oil_function_impl_conv_s8_u16_unroll2() { |
|
1646 return &_oil_function_impl_conv_s8_u16_unroll2; |
|
1647 } |
|
1648 #endif |
|
1649 |
|
1650 #ifdef __SYMBIAN32__ |
|
1651 |
|
1652 OilFunctionImpl* __oil_function_impl_conv_s8_s32_unroll2() { |
|
1653 return &_oil_function_impl_conv_s8_s32_unroll2; |
|
1654 } |
|
1655 #endif |
|
1656 |
|
1657 #ifdef __SYMBIAN32__ |
|
1658 |
|
1659 OilFunctionImpl* __oil_function_impl_conv_s8_u32_unroll2() { |
|
1660 return &_oil_function_impl_conv_s8_u32_unroll2; |
|
1661 } |
|
1662 #endif |
|
1663 |
|
1664 #ifdef __SYMBIAN32__ |
|
1665 |
|
1666 OilFunctionImpl* __oil_function_impl_conv_s8_f32_unroll2() { |
|
1667 return &_oil_function_impl_conv_s8_f32_unroll2; |
|
1668 } |
|
1669 #endif |
|
1670 |
|
1671 #ifdef __SYMBIAN32__ |
|
1672 |
|
1673 OilFunctionImpl* __oil_function_impl_conv_s8_f64_unroll2() { |
|
1674 return &_oil_function_impl_conv_s8_f64_unroll2; |
|
1675 } |
|
1676 #endif |
|
1677 |
|
1678 #ifdef __SYMBIAN32__ |
|
1679 |
|
1680 OilFunctionImpl* __oil_function_impl_conv_u8_s8_unroll2() { |
|
1681 return &_oil_function_impl_conv_u8_s8_unroll2; |
|
1682 } |
|
1683 #endif |
|
1684 |
|
1685 #ifdef __SYMBIAN32__ |
|
1686 |
|
1687 OilFunctionImpl* __oil_function_impl_conv_u8_s16_unroll2() { |
|
1688 return &_oil_function_impl_conv_u8_s16_unroll2; |
|
1689 } |
|
1690 #endif |
|
1691 |
|
1692 #ifdef __SYMBIAN32__ |
|
1693 |
|
1694 OilFunctionImpl* __oil_function_impl_conv_u8_u16_unroll2() { |
|
1695 return &_oil_function_impl_conv_u8_u16_unroll2; |
|
1696 } |
|
1697 #endif |
|
1698 |
|
1699 #ifdef __SYMBIAN32__ |
|
1700 |
|
1701 OilFunctionImpl* __oil_function_impl_conv_u8_s32_unroll2() { |
|
1702 return &_oil_function_impl_conv_u8_s32_unroll2; |
|
1703 } |
|
1704 #endif |
|
1705 |
|
1706 #ifdef __SYMBIAN32__ |
|
1707 |
|
1708 OilFunctionImpl* __oil_function_impl_conv_u8_u32_unroll2() { |
|
1709 return &_oil_function_impl_conv_u8_u32_unroll2; |
|
1710 } |
|
1711 #endif |
|
1712 |
|
1713 #ifdef __SYMBIAN32__ |
|
1714 |
|
1715 OilFunctionImpl* __oil_function_impl_conv_u8_f32_unroll2() { |
|
1716 return &_oil_function_impl_conv_u8_f32_unroll2; |
|
1717 } |
|
1718 #endif |
|
1719 |
|
1720 #ifdef __SYMBIAN32__ |
|
1721 |
|
1722 OilFunctionImpl* __oil_function_impl_conv_u8_f64_unroll2() { |
|
1723 return &_oil_function_impl_conv_u8_f64_unroll2; |
|
1724 } |
|
1725 #endif |
|
1726 |
|
1727 #ifdef __SYMBIAN32__ |
|
1728 |
|
1729 OilFunctionImpl* __oil_function_impl_conv_s16_s8_unroll2() { |
|
1730 return &_oil_function_impl_conv_s16_s8_unroll2; |
|
1731 } |
|
1732 #endif |
|
1733 |
|
1734 #ifdef __SYMBIAN32__ |
|
1735 |
|
1736 OilFunctionImpl* __oil_function_impl_conv_s16_u8_unroll2() { |
|
1737 return &_oil_function_impl_conv_s16_u8_unroll2; |
|
1738 } |
|
1739 #endif |
|
1740 |
|
1741 #ifdef __SYMBIAN32__ |
|
1742 |
|
1743 OilFunctionImpl* __oil_function_impl_conv_s16_u16_unroll2() { |
|
1744 return &_oil_function_impl_conv_s16_u16_unroll2; |
|
1745 } |
|
1746 #endif |
|
1747 |
|
1748 #ifdef __SYMBIAN32__ |
|
1749 |
|
1750 OilFunctionImpl* __oil_function_impl_conv_s16_s32_unroll2() { |
|
1751 return &_oil_function_impl_conv_s16_s32_unroll2; |
|
1752 } |
|
1753 #endif |
|
1754 |
|
1755 #ifdef __SYMBIAN32__ |
|
1756 |
|
1757 OilFunctionImpl* __oil_function_impl_conv_s16_u32_unroll2() { |
|
1758 return &_oil_function_impl_conv_s16_u32_unroll2; |
|
1759 } |
|
1760 #endif |
|
1761 |
|
1762 #ifdef __SYMBIAN32__ |
|
1763 |
|
1764 OilFunctionImpl* __oil_function_impl_conv_s16_f32_unroll2() { |
|
1765 return &_oil_function_impl_conv_s16_f32_unroll2; |
|
1766 } |
|
1767 #endif |
|
1768 |
|
1769 #ifdef __SYMBIAN32__ |
|
1770 |
|
1771 OilFunctionImpl* __oil_function_impl_conv_s16_f64_unroll2() { |
|
1772 return &_oil_function_impl_conv_s16_f64_unroll2; |
|
1773 } |
|
1774 #endif |
|
1775 |
|
1776 #ifdef __SYMBIAN32__ |
|
1777 |
|
1778 OilFunctionImpl* __oil_function_impl_conv_u16_s8_unroll2() { |
|
1779 return &_oil_function_impl_conv_u16_s8_unroll2; |
|
1780 } |
|
1781 #endif |
|
1782 |
|
1783 #ifdef __SYMBIAN32__ |
|
1784 |
|
1785 OilFunctionImpl* __oil_function_impl_conv_u16_u8_unroll2() { |
|
1786 return &_oil_function_impl_conv_u16_u8_unroll2; |
|
1787 } |
|
1788 #endif |
|
1789 |
|
1790 #ifdef __SYMBIAN32__ |
|
1791 |
|
1792 OilFunctionImpl* __oil_function_impl_conv_u16_s16_unroll2() { |
|
1793 return &_oil_function_impl_conv_u16_s16_unroll2; |
|
1794 } |
|
1795 #endif |
|
1796 |
|
1797 #ifdef __SYMBIAN32__ |
|
1798 |
|
1799 OilFunctionImpl* __oil_function_impl_conv_u16_s32_unroll2() { |
|
1800 return &_oil_function_impl_conv_u16_s32_unroll2; |
|
1801 } |
|
1802 #endif |
|
1803 |
|
1804 #ifdef __SYMBIAN32__ |
|
1805 |
|
1806 OilFunctionImpl* __oil_function_impl_conv_u16_u32_unroll2() { |
|
1807 return &_oil_function_impl_conv_u16_u32_unroll2; |
|
1808 } |
|
1809 #endif |
|
1810 |
|
1811 #ifdef __SYMBIAN32__ |
|
1812 |
|
1813 OilFunctionImpl* __oil_function_impl_conv_u16_f32_unroll2() { |
|
1814 return &_oil_function_impl_conv_u16_f32_unroll2; |
|
1815 } |
|
1816 #endif |
|
1817 |
|
1818 #ifdef __SYMBIAN32__ |
|
1819 |
|
1820 OilFunctionImpl* __oil_function_impl_conv_u16_f64_unroll2() { |
|
1821 return &_oil_function_impl_conv_u16_f64_unroll2; |
|
1822 } |
|
1823 #endif |
|
1824 |
|
1825 #ifdef __SYMBIAN32__ |
|
1826 |
|
1827 OilFunctionImpl* __oil_function_impl_conv_s32_s8_unroll2() { |
|
1828 return &_oil_function_impl_conv_s32_s8_unroll2; |
|
1829 } |
|
1830 #endif |
|
1831 |
|
1832 #ifdef __SYMBIAN32__ |
|
1833 |
|
1834 OilFunctionImpl* __oil_function_impl_conv_s32_s16_unroll2() { |
|
1835 return &_oil_function_impl_conv_s32_s16_unroll2; |
|
1836 } |
|
1837 #endif |
|
1838 |
|
1839 #ifdef __SYMBIAN32__ |
|
1840 |
|
1841 OilFunctionImpl* __oil_function_impl_conv_s32_u8_unroll2() { |
|
1842 return &_oil_function_impl_conv_s32_u8_unroll2; |
|
1843 } |
|
1844 #endif |
|
1845 |
|
1846 #ifdef __SYMBIAN32__ |
|
1847 |
|
1848 OilFunctionImpl* __oil_function_impl_conv_s32_u16_unroll2() { |
|
1849 return &_oil_function_impl_conv_s32_u16_unroll2; |
|
1850 } |
|
1851 #endif |
|
1852 |
|
1853 #ifdef __SYMBIAN32__ |
|
1854 |
|
1855 OilFunctionImpl* __oil_function_impl_conv_s32_u32_unroll2() { |
|
1856 return &_oil_function_impl_conv_s32_u32_unroll2; |
|
1857 } |
|
1858 #endif |
|
1859 |
|
1860 #ifdef __SYMBIAN32__ |
|
1861 |
|
1862 OilFunctionImpl* __oil_function_impl_conv_s32_f32_unroll2() { |
|
1863 return &_oil_function_impl_conv_s32_f32_unroll2; |
|
1864 } |
|
1865 #endif |
|
1866 |
|
1867 #ifdef __SYMBIAN32__ |
|
1868 |
|
1869 OilFunctionImpl* __oil_function_impl_conv_s32_f64_unroll2() { |
|
1870 return &_oil_function_impl_conv_s32_f64_unroll2; |
|
1871 } |
|
1872 #endif |
|
1873 |
|
1874 #ifdef __SYMBIAN32__ |
|
1875 |
|
1876 OilFunctionImpl* __oil_function_impl_conv_u32_s8_unroll2() { |
|
1877 return &_oil_function_impl_conv_u32_s8_unroll2; |
|
1878 } |
|
1879 #endif |
|
1880 |
|
1881 #ifdef __SYMBIAN32__ |
|
1882 |
|
1883 OilFunctionImpl* __oil_function_impl_conv_u32_s16_unroll2() { |
|
1884 return &_oil_function_impl_conv_u32_s16_unroll2; |
|
1885 } |
|
1886 #endif |
|
1887 |
|
1888 #ifdef __SYMBIAN32__ |
|
1889 |
|
1890 OilFunctionImpl* __oil_function_impl_conv_u32_u8_unroll2() { |
|
1891 return &_oil_function_impl_conv_u32_u8_unroll2; |
|
1892 } |
|
1893 #endif |
|
1894 |
|
1895 #ifdef __SYMBIAN32__ |
|
1896 |
|
1897 OilFunctionImpl* __oil_function_impl_conv_u32_u16_unroll2() { |
|
1898 return &_oil_function_impl_conv_u32_u16_unroll2; |
|
1899 } |
|
1900 #endif |
|
1901 |
|
1902 #ifdef __SYMBIAN32__ |
|
1903 |
|
1904 OilFunctionImpl* __oil_function_impl_conv_u32_s32_unroll2() { |
|
1905 return &_oil_function_impl_conv_u32_s32_unroll2; |
|
1906 } |
|
1907 #endif |
|
1908 |
|
1909 #ifdef __SYMBIAN32__ |
|
1910 |
|
1911 OilFunctionImpl* __oil_function_impl_conv_u32_f32_unroll2() { |
|
1912 return &_oil_function_impl_conv_u32_f32_unroll2; |
|
1913 } |
|
1914 #endif |
|
1915 |
|
1916 #ifdef __SYMBIAN32__ |
|
1917 |
|
1918 OilFunctionImpl* __oil_function_impl_conv_u32_f64_unroll2() { |
|
1919 return &_oil_function_impl_conv_u32_f64_unroll2; |
|
1920 } |
|
1921 #endif |
|
1922 |
|
1923 #ifdef __SYMBIAN32__ |
|
1924 |
|
1925 OilFunctionImpl* __oil_function_impl_conv_f32_s8_unroll2() { |
|
1926 return &_oil_function_impl_conv_f32_s8_unroll2; |
|
1927 } |
|
1928 #endif |
|
1929 |
|
1930 #ifdef __SYMBIAN32__ |
|
1931 |
|
1932 OilFunctionImpl* __oil_function_impl_conv_f32_s16_unroll2() { |
|
1933 return &_oil_function_impl_conv_f32_s16_unroll2; |
|
1934 } |
|
1935 #endif |
|
1936 |
|
1937 #ifdef __SYMBIAN32__ |
|
1938 |
|
1939 OilFunctionImpl* __oil_function_impl_conv_f32_u8_unroll2() { |
|
1940 return &_oil_function_impl_conv_f32_u8_unroll2; |
|
1941 } |
|
1942 #endif |
|
1943 |
|
1944 #ifdef __SYMBIAN32__ |
|
1945 |
|
1946 OilFunctionImpl* __oil_function_impl_conv_f32_u16_unroll2() { |
|
1947 return &_oil_function_impl_conv_f32_u16_unroll2; |
|
1948 } |
|
1949 #endif |
|
1950 |
|
1951 #ifdef __SYMBIAN32__ |
|
1952 |
|
1953 OilFunctionImpl* __oil_function_impl_conv_f32_s32_unroll2() { |
|
1954 return &_oil_function_impl_conv_f32_s32_unroll2; |
|
1955 } |
|
1956 #endif |
|
1957 |
|
1958 #ifdef __SYMBIAN32__ |
|
1959 |
|
1960 OilFunctionImpl* __oil_function_impl_conv_f32_u32_unroll2() { |
|
1961 return &_oil_function_impl_conv_f32_u32_unroll2; |
|
1962 } |
|
1963 #endif |
|
1964 |
|
1965 #ifdef __SYMBIAN32__ |
|
1966 |
|
1967 OilFunctionImpl* __oil_function_impl_conv_f32_f64_unroll2() { |
|
1968 return &_oil_function_impl_conv_f32_f64_unroll2; |
|
1969 } |
|
1970 #endif |
|
1971 |
|
1972 #ifdef __SYMBIAN32__ |
|
1973 |
|
1974 OilFunctionImpl* __oil_function_impl_conv_f64_s8_unroll2() { |
|
1975 return &_oil_function_impl_conv_f64_s8_unroll2; |
|
1976 } |
|
1977 #endif |
|
1978 |
|
1979 #ifdef __SYMBIAN32__ |
|
1980 |
|
1981 OilFunctionImpl* __oil_function_impl_conv_f64_u8_unroll2() { |
|
1982 return &_oil_function_impl_conv_f64_u8_unroll2; |
|
1983 } |
|
1984 #endif |
|
1985 |
|
1986 #ifdef __SYMBIAN32__ |
|
1987 |
|
1988 OilFunctionImpl* __oil_function_impl_conv_f64_s16_unroll2() { |
|
1989 return &_oil_function_impl_conv_f64_s16_unroll2; |
|
1990 } |
|
1991 #endif |
|
1992 |
|
1993 #ifdef __SYMBIAN32__ |
|
1994 |
|
1995 OilFunctionImpl* __oil_function_impl_conv_f64_u16_unroll2() { |
|
1996 return &_oil_function_impl_conv_f64_u16_unroll2; |
|
1997 } |
|
1998 #endif |
|
1999 |
|
2000 #ifdef __SYMBIAN32__ |
|
2001 |
|
2002 OilFunctionImpl* __oil_function_impl_conv_f64_s32_unroll2() { |
|
2003 return &_oil_function_impl_conv_f64_s32_unroll2; |
|
2004 } |
|
2005 #endif |
|
2006 |
|
2007 #ifdef __SYMBIAN32__ |
|
2008 |
|
2009 OilFunctionImpl* __oil_function_impl_conv_f64_u32_unroll2() { |
|
2010 return &_oil_function_impl_conv_f64_u32_unroll2; |
|
2011 } |
|
2012 #endif |
|
2013 |
|
2014 #ifdef __SYMBIAN32__ |
|
2015 |
|
2016 OilFunctionImpl* __oil_function_impl_conv_f64_f32_unroll2() { |
|
2017 return &_oil_function_impl_conv_f64_f32_unroll2; |
|
2018 } |
|
2019 #endif |
|
2020 |
|
2021 #ifdef __SYMBIAN32__ |
|
2022 |
|
2023 OilFunctionImpl* __oil_function_impl_conv_s8_f32_rintf() { |
|
2024 return &_oil_function_impl_conv_s8_f32_rintf; |
|
2025 } |
|
2026 #endif |
|
2027 |
|
2028 #ifdef __SYMBIAN32__ |
|
2029 |
|
2030 OilFunctionImpl* __oil_function_impl_conv_u8_f32_rintf() { |
|
2031 return &_oil_function_impl_conv_u8_f32_rintf; |
|
2032 } |
|
2033 #endif |
|
2034 |
|
2035 #ifdef __SYMBIAN32__ |
|
2036 |
|
2037 OilFunctionImpl* __oil_function_impl_conv_s16_f32_rintf() { |
|
2038 return &_oil_function_impl_conv_s16_f32_rintf; |
|
2039 } |
|
2040 #endif |
|
2041 |
|
2042 #ifdef __SYMBIAN32__ |
|
2043 |
|
2044 OilFunctionImpl* __oil_function_impl_conv_u16_f32_rintf() { |
|
2045 return &_oil_function_impl_conv_u16_f32_rintf; |
|
2046 } |
|
2047 #endif |
|
2048 |
|
2049 #ifdef __SYMBIAN32__ |
|
2050 |
|
2051 OilFunctionImpl* __oil_function_impl_conv_s32_f32_rintf() { |
|
2052 return &_oil_function_impl_conv_s32_f32_rintf; |
|
2053 } |
|
2054 #endif |
|
2055 |
|
2056 #ifdef __SYMBIAN32__ |
|
2057 |
|
2058 OilFunctionImpl* __oil_function_impl_conv_u32_f32_rintf() { |
|
2059 return &_oil_function_impl_conv_u32_f32_rintf; |
|
2060 } |
|
2061 #endif |
|
2062 |
|
2063 #ifdef __SYMBIAN32__ |
|
2064 |
|
2065 OilFunctionImpl* __oil_function_impl_conv_s8_f32_lrint() { |
|
2066 return &_oil_function_impl_conv_s8_f32_lrint; |
|
2067 } |
|
2068 #endif |
|
2069 |
|
2070 #ifdef __SYMBIAN32__ |
|
2071 |
|
2072 OilFunctionImpl* __oil_function_impl_conv_s8_f64_lrint() { |
|
2073 return &_oil_function_impl_conv_s8_f64_lrint; |
|
2074 } |
|
2075 #endif |
|
2076 |
|
2077 |
|
2078 #ifdef __SYMBIAN32__ |
|
2079 |
|
2080 OilFunctionImpl* __oil_function_impl_conv_u8_f32_lrint() { |
|
2081 return &_oil_function_impl_conv_u8_f32_lrint; |
|
2082 } |
|
2083 #endif |
|
2084 |
|
2085 #ifdef __SYMBIAN32__ |
|
2086 |
|
2087 OilFunctionImpl* __oil_function_impl_conv_u8_f64_lrint() { |
|
2088 return &_oil_function_impl_conv_u8_f64_lrint; |
|
2089 } |
|
2090 #endif |
|
2091 |
|
2092 #ifdef __SYMBIAN32__ |
|
2093 |
|
2094 OilFunctionImpl* __oil_function_impl_conv_s16_f32_lrint() { |
|
2095 return &_oil_function_impl_conv_s16_f32_lrint; |
|
2096 } |
|
2097 #endif |
|
2098 |
|
2099 #ifdef __SYMBIAN32__ |
|
2100 |
|
2101 OilFunctionImpl* __oil_function_impl_conv_s16_f64_lrint() { |
|
2102 return &_oil_function_impl_conv_s16_f64_lrint; |
|
2103 } |
|
2104 #endif |
|
2105 |
|
2106 |
|
2107 #ifdef __SYMBIAN32__ |
|
2108 |
|
2109 OilFunctionImpl* __oil_function_impl_conv_u16_f32_lrint() { |
|
2110 return &_oil_function_impl_conv_u16_f32_lrint; |
|
2111 } |
|
2112 #endif |
|
2113 |
|
2114 #ifdef __SYMBIAN32__ |
|
2115 |
|
2116 OilFunctionImpl* __oil_function_impl_conv_u16_f64_lrint() { |
|
2117 return &_oil_function_impl_conv_u16_f64_lrint; |
|
2118 } |
|
2119 #endif |
|
2120 |
|
2121 #ifdef __SYMBIAN32__ |
|
2122 |
|
2123 OilFunctionImpl* __oil_function_impl_conv_s32_f32_lrint() { |
|
2124 return &_oil_function_impl_conv_s32_f32_lrint; |
|
2125 } |
|
2126 #endif |
|
2127 |
|
2128 #ifdef __SYMBIAN32__ |
|
2129 |
|
2130 OilFunctionImpl* __oil_function_impl_conv_s32_f64_lrint() { |
|
2131 return &_oil_function_impl_conv_s32_f64_lrint; |
|
2132 } |
|
2133 #endif |
|
2134 |
|
2135 #ifdef __SYMBIAN32__ |
|
2136 |
|
2137 OilFunctionImpl* __oil_function_impl_conv_s8_f32_lrintf() { |
|
2138 return &_oil_function_impl_conv_s8_f32_lrintf; |
|
2139 } |
|
2140 #endif |
|
2141 |
|
2142 #ifdef __SYMBIAN32__ |
|
2143 |
|
2144 OilFunctionImpl* __oil_function_impl_conv_u8_f32_lrintf() { |
|
2145 return &_oil_function_impl_conv_u8_f32_lrintf; |
|
2146 } |
|
2147 #endif |
|
2148 |
|
2149 #ifdef __SYMBIAN32__ |
|
2150 |
|
2151 OilFunctionImpl* __oil_function_impl_conv_s16_f32_lrintf() { |
|
2152 return &_oil_function_impl_conv_s16_f32_lrintf; |
|
2153 } |
|
2154 #endif |
|
2155 |
|
2156 #ifdef __SYMBIAN32__ |
|
2157 |
|
2158 OilFunctionImpl* __oil_function_impl_conv_u16_f32_lrintf() { |
|
2159 return &_oil_function_impl_conv_u16_f32_lrintf; |
|
2160 } |
|
2161 #endif |
|
2162 |
|
2163 #ifdef __SYMBIAN32__ |
|
2164 |
|
2165 OilFunctionImpl* __oil_function_impl_conv_s32_f32_lrintf() { |
|
2166 return &_oil_function_impl_conv_s32_f32_lrintf; |
|
2167 } |
|
2168 #endif |
|
2169 |
|
2170 |
|
2171 |
|
2172 |