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

Side by Side Diff: include/core/SkPostConfig.h

Issue 349663005: always use 64 bit long for fixed mul (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 | « include/core/SkFixed.h ('k') | src/core/SkMath.cpp » ('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 2006 The Android Open Source Project 2 * Copyright 2006 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 #ifndef SkPostConfig_DEFINED 8 #ifndef SkPostConfig_DEFINED
9 #define SkPostConfig_DEFINED 9 #define SkPostConfig_DEFINED
10 10
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 SK_ ## C1 ## 32_SHIFT == 16 && \ 222 SK_ ## C1 ## 32_SHIFT == 16 && \
223 SK_ ## C0 ## 32_SHIFT == 24) 223 SK_ ## C0 ## 32_SHIFT == 24)
224 #else 224 #else
225 # define SK_PMCOLOR_BYTE_ORDER(C0, C1, C2, C3) \ 225 # define SK_PMCOLOR_BYTE_ORDER(C0, C1, C2, C3) \
226 (SK_ ## C0 ## 32_SHIFT == 0 && \ 226 (SK_ ## C0 ## 32_SHIFT == 0 && \
227 SK_ ## C1 ## 32_SHIFT == 8 && \ 227 SK_ ## C1 ## 32_SHIFT == 8 && \
228 SK_ ## C2 ## 32_SHIFT == 16 && \ 228 SK_ ## C2 ## 32_SHIFT == 16 && \
229 SK_ ## C3 ## 32_SHIFT == 24) 229 SK_ ## C3 ## 32_SHIFT == 24)
230 #endif 230 #endif
231 231
232 //////////////////////////////////////////////////////////////////////
233
234 // TODO: rebaseline as needed so we can remove this flag entirely.
235 // - all platforms have int64_t now
236 // - we have slightly different fixed math results because of this check
237 // since we don't define this for linux/android
238 #if defined(SK_BUILD_FOR_WIN32) || defined(SK_BUILD_FOR_MAC)
239 # ifndef SkLONGLONG
240 # define SkLONGLONG int64_t
241 # endif
242 #endif
243
244 //////////////////////////////////////////////////////////////////////////////// ////////////// 232 //////////////////////////////////////////////////////////////////////////////// //////////////
245 #ifndef SK_BUILD_FOR_WINCE 233 #ifndef SK_BUILD_FOR_WINCE
246 # include <string.h> 234 # include <string.h>
247 # include <stdlib.h> 235 # include <stdlib.h>
248 #else 236 #else
249 # define _CMNINTRIN_DECLARE_ONLY 237 # define _CMNINTRIN_DECLARE_ONLY
250 # include "cmnintrin.h" 238 # include "cmnintrin.h"
251 #endif 239 #endif
252 240
253 #if defined SK_DEBUG && defined SK_BUILD_FOR_WIN32 241 #if defined SK_DEBUG && defined SK_BUILD_FOR_WIN32
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 404
417 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) 405 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB)
418 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" 406 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB"
419 #elif defined(SK_GAMMA_SRGB) 407 #elif defined(SK_GAMMA_SRGB)
420 # define SK_GAMMA_EXPONENT (0.0f) 408 # define SK_GAMMA_EXPONENT (0.0f)
421 #elif !defined(SK_GAMMA_EXPONENT) 409 #elif !defined(SK_GAMMA_EXPONENT)
422 # define SK_GAMMA_EXPONENT (2.2f) 410 # define SK_GAMMA_EXPONENT (2.2f)
423 #endif 411 #endif
424 412
425 #endif // SkPostConfig_DEFINED 413 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkFixed.h ('k') | src/core/SkMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698