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

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

Issue 27044002: Clean up SkTypes.h. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: For patch -p1. Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « include/config/sk_stdint.h ('k') | include/core/SkStream.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 /* 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #endif 63 #endif
64 #endif 64 #endif
65 65
66 #ifdef SK_BUILD_FOR_WIN32 66 #ifdef SK_BUILD_FOR_WIN32
67 #if !defined(SK_RESTRICT) 67 #if !defined(SK_RESTRICT)
68 #define SK_RESTRICT __restrict 68 #define SK_RESTRICT __restrict
69 #endif 69 #endif
70 #if !defined(SK_WARN_UNUSED_RESULT) 70 #if !defined(SK_WARN_UNUSED_RESULT)
71 #define SK_WARN_UNUSED_RESULT 71 #define SK_WARN_UNUSED_RESULT
72 #endif 72 #endif
73 #include "sk_stdint.h"
74 #endif 73 #endif
75 74
76 ////////////////////////////////////////////////////////////////////// 75 //////////////////////////////////////////////////////////////////////
77 76
78 #if !defined(SK_RESTRICT) 77 #if !defined(SK_RESTRICT)
79 #define SK_RESTRICT __restrict__ 78 #define SK_RESTRICT __restrict__
80 #endif 79 #endif
81 80
82 #if !defined(SK_WARN_UNUSED_RESULT) 81 #if !defined(SK_WARN_UNUSED_RESULT)
83 #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 82 #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
(...skipping 11 matching lines...) Expand all
95 #if defined (__ppc__) || defined(__PPC__) || defined(__ppc64__) \ 94 #if defined (__ppc__) || defined(__PPC__) || defined(__ppc64__) \
96 || defined(__PPC64__) 95 || defined(__PPC64__)
97 #define SK_CPU_BENDIAN 96 #define SK_CPU_BENDIAN
98 #else 97 #else
99 #define SK_CPU_LENDIAN 98 #define SK_CPU_LENDIAN
100 #endif 99 #endif
101 #endif 100 #endif
102 101
103 ////////////////////////////////////////////////////////////////////// 102 //////////////////////////////////////////////////////////////////////
104 103
105 #ifndef SK_MMAP_SUPPORT
106 #ifdef SK_BUILD_FOR_WIN32
107 // by default, if we're windows, we assume we don't have mmap
108 #define SK_MMAP_SUPPORT 0
109 #else
110 #define SK_MMAP_SUPPORT 1
111 #endif
112 #endif
113
114 //////////////////////////////////////////////////////////////////////
115
116 /** 104 /**
117 * SK_CPU_SSE_LEVEL 105 * SK_CPU_SSE_LEVEL
118 * 106 *
119 * If defined, SK_CPU_SSE_LEVEL should be set to the highest supported level. 107 * If defined, SK_CPU_SSE_LEVEL should be set to the highest supported level.
120 * On non-intel CPU this should be undefined. 108 * On non-intel CPU this should be undefined.
121 */ 109 */
122 110
123 #define SK_CPU_SSE_LEVEL_SSE1 10 111 #define SK_CPU_SSE_LEVEL_SSE1 10
124 #define SK_CPU_SSE_LEVEL_SSE2 20 112 #define SK_CPU_SSE_LEVEL_SSE2 20
125 #define SK_CPU_SSE_LEVEL_SSE3 30 113 #define SK_CPU_SSE_LEVEL_SSE3 30
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 * 233 *
246 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 234 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
247 */ 235 */
248 #if SK_HAS_ATTRIBUTE(optimize) 236 #if SK_HAS_ATTRIBUTE(optimize)
249 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 237 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
250 #else 238 #else
251 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 239 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
252 #endif 240 #endif
253 241
254 #endif 242 #endif
OLDNEW
« no previous file with comments | « include/config/sk_stdint.h ('k') | include/core/SkStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698