| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The Android Open Source Project | 2 * Copyright 2008 The Android Open Source Project |
| 3 * | 3 * |
| 4 * 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 |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkMathPriv.h" | 8 #include "SkMathPriv.h" |
| 9 #include "SkFixed.h" |
| 9 #include "SkFloatBits.h" | 10 #include "SkFloatBits.h" |
| 10 #include "SkFloatingPoint.h" | 11 #include "SkFloatingPoint.h" |
| 11 #include "SkScalar.h" | 12 #include "SkScalar.h" |
| 12 | 13 |
| 13 const uint32_t gIEEENotANumber = 0x7FFFFFFF; | 14 const uint32_t gIEEENotANumber = 0x7FFFFFFF; |
| 14 const uint32_t gIEEEInfinity = 0x7F800000; | 15 const uint32_t gIEEEInfinity = 0x7F800000; |
| 15 const uint32_t gIEEENegativeInfinity = 0xFF800000; | 16 const uint32_t gIEEENegativeInfinity = 0xFF800000; |
| 16 | 17 |
| 17 #define sub_shift(zeros, x, n) \ | 18 #define sub_shift(zeros, x, n) \ |
| 18 zeros -= n; \ | 19 zeros -= n; \ |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 if (SkScalarNearlyZero(*cosValue)) { | 147 if (SkScalarNearlyZero(*cosValue)) { |
| 147 *cosValue = 0; | 148 *cosValue = 0; |
| 148 } | 149 } |
| 149 } | 150 } |
| 150 | 151 |
| 151 if (SkScalarNearlyZero(sinValue)) { | 152 if (SkScalarNearlyZero(sinValue)) { |
| 152 sinValue = 0; | 153 sinValue = 0; |
| 153 } | 154 } |
| 154 return sinValue; | 155 return sinValue; |
| 155 } | 156 } |
| OLD | NEW |