OLD | NEW |
1 /* NEON optimized code (C) COPYRIGHT 2009 Motorola | 1 /* NEON optimized code (C) COPYRIGHT 2009 Motorola |
2 * | 2 * |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /* | 7 /* |
8 * Modifications done in-house at Motorola | 8 * Modifications done in-house at Motorola |
9 * | 9 * |
10 * this is a clone of SkBitmapProcState_matrix.h | 10 * this is a clone of SkBitmapProcState_matrix.h |
(...skipping 19 matching lines...) Expand all Loading... |
30 * #define MAKENAME(suffix) ClampX_ClampY ## suffix | 30 * #define MAKENAME(suffix) ClampX_ClampY ## suffix |
31 * #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) | 31 * #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) |
32 * #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max) | 32 * #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max) |
33 * #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) | 33 * #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) |
34 * #define TILEY_LOW_BITS(fy, max) (((fy) >> 12) & 0xF) | 34 * #define TILEY_LOW_BITS(fy, max) (((fy) >> 12) & 0xF) |
35 * #define CHECK_FOR_DECAL | 35 * #define CHECK_FOR_DECAL |
36 */ | 36 */ |
37 | 37 |
38 /* SkClampMax(val,max) -- bound to 0..max */ | 38 /* SkClampMax(val,max) -- bound to 0..max */ |
39 | 39 |
40 #define SCALE_NOFILTER_NAME MAKENAME(_nofilter_scale_neon) | 40 #define SCALE_NOFILTER_NAME MAKENAME(_nofilter_scale) |
41 #define SCALE_FILTER_NAME MAKENAME(_filter_scale_neon) | 41 #define SCALE_FILTER_NAME MAKENAME(_filter_scale) |
42 #define AFFINE_NOFILTER_NAME MAKENAME(_nofilter_affine_neon) | 42 #define AFFINE_NOFILTER_NAME MAKENAME(_nofilter_affine) |
43 #define AFFINE_FILTER_NAME MAKENAME(_filter_affine_neon) | 43 #define AFFINE_FILTER_NAME MAKENAME(_filter_affine) |
44 #define PERSP_NOFILTER_NAME MAKENAME(_nofilter_persp_neon) | 44 #define PERSP_NOFILTER_NAME MAKENAME(_nofilter_persp) |
45 #define PERSP_FILTER_NAME MAKENAME(_filter_persp_neon) | 45 #define PERSP_FILTER_NAME MAKENAME(_filter_persp) |
46 | 46 |
47 #define PACK_FILTER_X_NAME MAKENAME(_pack_filter_x) | 47 #define PACK_FILTER_X_NAME MAKENAME(_pack_filter_x) |
48 #define PACK_FILTER_Y_NAME MAKENAME(_pack_filter_y) | 48 #define PACK_FILTER_Y_NAME MAKENAME(_pack_filter_y) |
49 | 49 |
50 #ifndef PREAMBLE | 50 #ifndef PREAMBLE |
51 #define PREAMBLE(state) | 51 #define PREAMBLE(state) |
52 #define PREAMBLE_PARAM_X | 52 #define PREAMBLE_PARAM_X |
53 #define PREAMBLE_PARAM_Y | 53 #define PREAMBLE_PARAM_Y |
54 #define PREAMBLE_ARG_X | 54 #define PREAMBLE_ARG_X |
55 #define PREAMBLE_ARG_Y | 55 #define PREAMBLE_ARG_Y |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 #undef PERSP_FILTER_NAME | 902 #undef PERSP_FILTER_NAME |
903 | 903 |
904 #undef PREAMBLE | 904 #undef PREAMBLE |
905 #undef PREAMBLE_PARAM_X | 905 #undef PREAMBLE_PARAM_X |
906 #undef PREAMBLE_PARAM_Y | 906 #undef PREAMBLE_PARAM_Y |
907 #undef PREAMBLE_ARG_X | 907 #undef PREAMBLE_ARG_X |
908 #undef PREAMBLE_ARG_Y | 908 #undef PREAMBLE_ARG_Y |
909 | 909 |
910 #undef TILEX_LOW_BITS | 910 #undef TILEX_LOW_BITS |
911 #undef TILEY_LOW_BITS | 911 #undef TILEY_LOW_BITS |
OLD | NEW |