1 /*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #include <stdint.h>
20
24
26 uint32_t maxi, uint32_t maxisign)
27 {
29 return mini;
30 else if ((
a ^ (1
U << 31)) > maxisign)
31 return maxi;
32 else
34 }
35
38 {
40 uint32_t mini = *(uint32_t *)
min;
41 uint32_t maxi = *(uint32_t *)
max;
42 uint32_t maxisign = maxi ^ (1
U << 31);
43 uint32_t *dsti = (uint32_t *) dst;
44 const uint32_t *srci = (
const uint32_t *)
src;
45
46 for (
i = 0;
i <
len;
i += 8) {
55 }
56 }
57
60 {
62
63 if (min < 0 && max > 0) {
65 } else {
66 for (
i = 0;
i <
len;
i += 8) {
75 }
76 }
77 }
78
80 int order)
81 {
82 unsigned res = 0;
83
84 while (order--)
85 res += *v1++ **v2++;
86
87 return res;
88 }
89
92 {
93 do {
104 }
105
107 {
111
112 if (ARCH_ARM)
114 if (ARCH_PPC)
116 if (ARCH_X86)
118 }