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

Side by Side Diff: src/core/SkMath.cpp

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 8 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 | « src/core/SkLinearBitmapPipeline_sample.h ('k') | src/core/SkPerspIter.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 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
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 }
OLDNEW
« no previous file with comments | « src/core/SkLinearBitmapPipeline_sample.h ('k') | src/core/SkPerspIter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698