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

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

Issue 117053002: remove SK_SCALAR_IS_[FLOAT,FIXED] and assume floats (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPreConfig_DEFINED 10 #ifndef SkPreConfig_DEFINED
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #if !defined(SK_RESTRICT) 84 #if !defined(SK_RESTRICT)
85 #define SK_RESTRICT __restrict__ 85 #define SK_RESTRICT __restrict__
86 #endif 86 #endif
87 87
88 #if !defined(SK_WARN_UNUSED_RESULT) 88 #if !defined(SK_WARN_UNUSED_RESULT)
89 #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 89 #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
90 #endif 90 #endif
91 91
92 ////////////////////////////////////////////////////////////////////// 92 //////////////////////////////////////////////////////////////////////
93 93
94 #if !defined(SK_SCALAR_IS_FLOAT) && !defined(SK_SCALAR_IS_FIXED)
95 #define SK_SCALAR_IS_FLOAT
96 #endif
97
98 //////////////////////////////////////////////////////////////////////
99
100 #if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN) 94 #if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN)
101 #if defined (__ppc__) || defined(__PPC__) || defined(__ppc64__) \ 95 #if defined (__ppc__) || defined(__PPC__) || defined(__ppc64__) \
102 || defined(__PPC64__) 96 || defined(__PPC64__)
103 #define SK_CPU_BENDIAN 97 #define SK_CPU_BENDIAN
104 #else 98 #else
105 #define SK_CPU_LENDIAN 99 #define SK_CPU_LENDIAN
106 #endif 100 #endif
107 #endif 101 #endif
108 102
109 ////////////////////////////////////////////////////////////////////// 103 //////////////////////////////////////////////////////////////////////
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 * 234 *
241 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 235 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
242 */ 236 */
243 #if SK_HAS_ATTRIBUTE(optimize) 237 #if SK_HAS_ATTRIBUTE(optimize)
244 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 238 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
245 #else 239 #else
246 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 240 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
247 #endif 241 #endif
248 242
249 #endif 243 #endif
OLDNEW
« no previous file with comments | « include/core/SkPostConfig.h ('k') | include/core/SkRect.h » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698