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

Side by Side Diff: include/private/SkFloatingPoint.h

Issue 2045633002: Move immintrin/arm_neon includes to where they are used. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: check for libc++ Created 4 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/SkTypes.h ('k') | src/core/SkSharedMutex.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 SkFloatingPoint_DEFINED 10 #ifndef SkFloatingPoint_DEFINED
11 #define SkFloatingPoint_DEFINED 11 #define SkFloatingPoint_DEFINED
12 12
13 #include "SkTypes.h" 13 #include "SkTypes.h"
14 14
15 #include <math.h> 15 #include <math.h>
16 #include <float.h> 16 #include <float.h>
17 17
18 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1
19 #include <xmmintrin.h>
20 #elif defined(SK_ARM_HAS_NEON)
21 #include <arm_neon.h>
22 #endif
23
18 // For _POSIX_VERSION 24 // For _POSIX_VERSION
19 #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) 25 #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
20 #include <unistd.h> 26 #include <unistd.h>
21 #endif 27 #endif
22 28
23 #include "SkFloatBits.h" 29 #include "SkFloatBits.h"
24 30
25 // C++98 cmath std::pow seems to be the earliest portable way to get float pow. 31 // C++98 cmath std::pow seems to be the earliest portable way to get float pow.
26 // However, on Linux including cmath undefines isfinite. 32 // However, on Linux including cmath undefines isfinite.
27 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14608 33 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14608
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // This is the number of significant digits we can print in a string such that w hen we read that 149 // This is the number of significant digits we can print in a string such that w hen we read that
144 // string back we get the floating point number we expect. The minimum value C requires is 6, but 150 // string back we get the floating point number we expect. The minimum value C requires is 6, but
145 // most compilers support 9 151 // most compilers support 9
146 #ifdef FLT_DECIMAL_DIG 152 #ifdef FLT_DECIMAL_DIG
147 #define SK_FLT_DECIMAL_DIG FLT_DECIMAL_DIG 153 #define SK_FLT_DECIMAL_DIG FLT_DECIMAL_DIG
148 #else 154 #else
149 #define SK_FLT_DECIMAL_DIG 9 155 #define SK_FLT_DECIMAL_DIG 9
150 #endif 156 #endif
151 157
152 #endif 158 #endif
OLDNEW
« no previous file with comments | « include/core/SkTypes.h ('k') | src/core/SkSharedMutex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698