OLD | NEW |
| 1 /* |
| 2 * Copyright 2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
1 #ifndef SkColor_opts_neon_DEFINED | 8 #ifndef SkColor_opts_neon_DEFINED |
2 #define SkColor_opts_neon_DEFINED | 9 #define SkColor_opts_neon_DEFINED |
3 | 10 |
4 #include "SkTypes.h" | 11 #include "SkTypes.h" |
5 #include "SkColorPriv.h" | 12 #include "SkColorPriv.h" |
6 | 13 |
7 #include <arm_neon.h> | 14 #include <arm_neon.h> |
8 | 15 |
9 #define NEON_A (SK_A32_SHIFT / 8) | 16 #define NEON_A (SK_A32_SHIFT / 8) |
10 #define NEON_R (SK_R32_SHIFT / 8) | 17 #define NEON_R (SK_R32_SHIFT / 8) |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 112 } |
106 | 113 |
107 static inline SkPMColor SkFourByteInterp_neon(SkPMColor src, SkPMColor dst, | 114 static inline SkPMColor SkFourByteInterp_neon(SkPMColor src, SkPMColor dst, |
108 U8CPU srcWeight) { | 115 U8CPU srcWeight) { |
109 SkASSERT(srcWeight <= 255); | 116 SkASSERT(srcWeight <= 255); |
110 unsigned scale = SkAlpha255To256(srcWeight); | 117 unsigned scale = SkAlpha255To256(srcWeight); |
111 return SkFourByteInterp256_neon(src, dst, scale); | 118 return SkFourByteInterp256_neon(src, dst, scale); |
112 } | 119 } |
113 | 120 |
114 #endif /* #ifndef SkColor_opts_neon_DEFINED */ | 121 #endif /* #ifndef SkColor_opts_neon_DEFINED */ |
OLD | NEW |