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

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

Issue 2080223007: use vectorsize on clangcl (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: bump version Created 4 years, 6 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 #define HAS_COPYROW_MIPS 365 #define HAS_COPYROW_MIPS
366 #if defined(__mips_dsp) && (__mips_dsp_rev >= 2) 366 #if defined(__mips_dsp) && (__mips_dsp_rev >= 2)
367 #define HAS_I422TOARGBROW_DSPR2 367 #define HAS_I422TOARGBROW_DSPR2
368 #define HAS_INTERPOLATEROW_DSPR2 368 #define HAS_INTERPOLATEROW_DSPR2
369 #define HAS_MIRRORROW_DSPR2 369 #define HAS_MIRRORROW_DSPR2
370 #define HAS_MIRRORUVROW_DSPR2 370 #define HAS_MIRRORUVROW_DSPR2
371 #define HAS_SPLITUVROW_DSPR2 371 #define HAS_SPLITUVROW_DSPR2
372 #endif 372 #endif
373 #endif 373 #endif
374 374
375 #if defined(_MSC_VER) && !defined(__CLR_VER) 375 #if defined(_MSC_VER) && !defined(__CLR_VER) && !defined(__clang__)
376 #define SIMD_ALIGNED(var) __declspec(align(16)) var 376 #define SIMD_ALIGNED(var) __declspec(align(16)) var
377 #define SIMD_ALIGNED32(var) __declspec(align(64)) var 377 #define SIMD_ALIGNED32(var) __declspec(align(64)) var
378 typedef __declspec(align(16)) int16 vec16[8]; 378 typedef __declspec(align(16)) int16 vec16[8];
379 typedef __declspec(align(16)) int32 vec32[4]; 379 typedef __declspec(align(16)) int32 vec32[4];
380 typedef __declspec(align(16)) int8 vec8[16]; 380 typedef __declspec(align(16)) int8 vec8[16];
381 typedef __declspec(align(16)) uint16 uvec16[8]; 381 typedef __declspec(align(16)) uint16 uvec16[8];
382 typedef __declspec(align(16)) uint32 uvec32[4]; 382 typedef __declspec(align(16)) uint32 uvec32[4];
383 typedef __declspec(align(16)) uint8 uvec8[16]; 383 typedef __declspec(align(16)) uint8 uvec8[16];
384 typedef __declspec(align(32)) int16 lvec16[16]; 384 typedef __declspec(align(32)) int16 lvec16[16];
385 typedef __declspec(align(32)) int32 lvec32[8]; 385 typedef __declspec(align(32)) int32 lvec32[8];
386 typedef __declspec(align(32)) int8 lvec8[32]; 386 typedef __declspec(align(32)) int8 lvec8[32];
387 typedef __declspec(align(32)) uint16 ulvec16[16]; 387 typedef __declspec(align(32)) uint16 ulvec16[16];
388 typedef __declspec(align(32)) uint32 ulvec32[8]; 388 typedef __declspec(align(32)) uint32 ulvec32[8];
389 typedef __declspec(align(32)) uint8 ulvec8[32]; 389 typedef __declspec(align(32)) uint8 ulvec8[32];
390 #elif defined(__GNUC__) && !defined(__pnacl__) 390 #elif !defined(__pnacl__) && (defined(__GNUC__) || defined(__clang__))
391 // Caveat GCC 4.2 to 4.7 have a known issue using vectors with const. 391 // Caveat GCC 4.2 to 4.7 have a known issue using vectors with const.
392 #define SIMD_ALIGNED(var) var __attribute__((aligned(16))) 392 #define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
393 #define SIMD_ALIGNED32(var) var __attribute__((aligned(64))) 393 #define SIMD_ALIGNED32(var) var __attribute__((aligned(64)))
394 typedef int16 __attribute__((vector_size(16))) vec16; 394 typedef int16 __attribute__((vector_size(16))) vec16;
395 typedef int32 __attribute__((vector_size(16))) vec32; 395 typedef int32 __attribute__((vector_size(16))) vec32;
396 typedef int8 __attribute__((vector_size(16))) vec8; 396 typedef int8 __attribute__((vector_size(16))) vec8;
397 typedef uint16 __attribute__((vector_size(16))) uvec16; 397 typedef uint16 __attribute__((vector_size(16))) uvec16;
398 typedef uint32 __attribute__((vector_size(16))) uvec32; 398 typedef uint32 __attribute__((vector_size(16))) uvec32;
399 typedef uint8 __attribute__((vector_size(16))) uvec8; 399 typedef uint8 __attribute__((vector_size(16))) uvec8;
400 typedef int16 __attribute__((vector_size(32))) lvec16; 400 typedef int16 __attribute__((vector_size(32))) lvec16;
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, 1930 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb,
1931 int width, 1931 int width,
1932 const uint8* luma, uint32 lumacoeff); 1932 const uint8* luma, uint32 lumacoeff);
1933 1933
1934 #ifdef __cplusplus 1934 #ifdef __cplusplus
1935 } // extern "C" 1935 } // extern "C"
1936 } // namespace libyuv 1936 } // namespace libyuv
1937 #endif 1937 #endif
1938 1938
1939 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT 1939 #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