Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: include/libyuv/row.h

Issue 1396363004: avoid vectors for pnacl which cause linker failure. (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « README.chromium ('k') | include/libyuv/version.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 typedef __declspec(align(16)) int8 vec8[16]; 377 typedef __declspec(align(16)) int8 vec8[16];
378 typedef __declspec(align(16)) uint16 uvec16[8]; 378 typedef __declspec(align(16)) uint16 uvec16[8];
379 typedef __declspec(align(16)) uint32 uvec32[4]; 379 typedef __declspec(align(16)) uint32 uvec32[4];
380 typedef __declspec(align(16)) uint8 uvec8[16]; 380 typedef __declspec(align(16)) uint8 uvec8[16];
381 typedef __declspec(align(32)) int16 lvec16[16]; 381 typedef __declspec(align(32)) int16 lvec16[16];
382 typedef __declspec(align(32)) int32 lvec32[8]; 382 typedef __declspec(align(32)) int32 lvec32[8];
383 typedef __declspec(align(32)) int8 lvec8[32]; 383 typedef __declspec(align(32)) int8 lvec8[32];
384 typedef __declspec(align(32)) uint16 ulvec16[16]; 384 typedef __declspec(align(32)) uint16 ulvec16[16];
385 typedef __declspec(align(32)) uint32 ulvec32[8]; 385 typedef __declspec(align(32)) uint32 ulvec32[8];
386 typedef __declspec(align(32)) uint8 ulvec8[32]; 386 typedef __declspec(align(32)) uint8 ulvec8[32];
387 #elif defined(__GNUC__) 387 #elif defined(__GNUC__) && !defined(__pnacl__)
388 // Caveat GCC 4.2 to 4.7 have a known issue using vectors with const. 388 // Caveat GCC 4.2 to 4.7 have a known issue using vectors with const.
389 #define SIMD_ALIGNED(var) var __attribute__((aligned(16))) 389 #define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
390 #define SIMD_ALIGNED32(var) var __attribute__((aligned(64))) 390 #define SIMD_ALIGNED32(var) var __attribute__((aligned(64)))
391 typedef int16 __attribute__((vector_size(16))) vec16; 391 typedef int16 __attribute__((vector_size(16))) vec16;
392 typedef int32 __attribute__((vector_size(16))) vec32; 392 typedef int32 __attribute__((vector_size(16))) vec32;
393 typedef int8 __attribute__((vector_size(16))) vec8; 393 typedef int8 __attribute__((vector_size(16))) vec8;
394 typedef uint16 __attribute__((vector_size(16))) uvec16; 394 typedef uint16 __attribute__((vector_size(16))) uvec16;
395 typedef uint32 __attribute__((vector_size(16))) uvec32; 395 typedef uint32 __attribute__((vector_size(16))) uvec32;
396 typedef uint8 __attribute__((vector_size(16))) uvec8; 396 typedef uint8 __attribute__((vector_size(16))) uvec8;
397 typedef int16 __attribute__((vector_size(32))) lvec16; 397 typedef int16 __attribute__((vector_size(32))) lvec16;
(...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2149 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, 2149 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb,
2150 int width, 2150 int width,
2151 const uint8* luma, uint32 lumacoeff); 2151 const uint8* luma, uint32 lumacoeff);
2152 2152
2153 #ifdef __cplusplus 2153 #ifdef __cplusplus
2154 } // extern "C" 2154 } // extern "C"
2155 } // namespace libyuv 2155 } // namespace libyuv
2156 #endif 2156 #endif
2157 2157
2158 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT 2158 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT
OLDNEW
« no previous file with comments | « README.chromium ('k') | include/libyuv/version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698