OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #ifndef SkFDot6_DEFINED | 9 #ifndef SkFDot6_DEFINED |
11 #define SkFDot6_DEFINED | 10 #define SkFDot6_DEFINED |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 SkASSERT(b != 0); | 68 SkASSERT(b != 0); |
70 | 69 |
71 if (a == (int16_t)a) { | 70 if (a == (int16_t)a) { |
72 return SkLeftShift(a, 16) / b; | 71 return SkLeftShift(a, 16) / b; |
73 } else { | 72 } else { |
74 return SkFixedDiv(a, b); | 73 return SkFixedDiv(a, b); |
75 } | 74 } |
76 } | 75 } |
77 | 76 |
78 #endif | 77 #endif |
OLD | NEW |