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

Side by Side Diff: sky/engine/wtf/CPU.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. 3 * Copyright (C) 2007-2009 Torch Mobile, Inc.
4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
5 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 || defined(ARM) \ 63 || defined(ARM) \
64 || defined(_ARM_) 64 || defined(_ARM_)
65 #define WTF_CPU_ARM 1 65 #define WTF_CPU_ARM 1
66 66
67 #if defined(__ARMEB__) 67 #if defined(__ARMEB__)
68 #define WTF_CPU_BIG_ENDIAN 1 68 #define WTF_CPU_BIG_ENDIAN 1
69 69
70 #elif !defined(__ARM_EABI__) \ 70 #elif !defined(__ARM_EABI__) \
71 && !defined(__EABI__) \ 71 && !defined(__EABI__) \
72 && !defined(__VFP_FP__) \ 72 && !defined(__VFP_FP__) \
73 && !defined(_WIN32_WCE) \
73 && !defined(ANDROID) 74 && !defined(ANDROID)
74 #define WTF_CPU_MIDDLE_ENDIAN 1 75 #define WTF_CPU_MIDDLE_ENDIAN 1
75 76
76 #endif 77 #endif
77 78
78 /* Set WTF_ARM_ARCH_VERSION */ 79 /* Set WTF_ARM_ARCH_VERSION */
79 #if defined(__ARM_ARCH_4__) \ 80 #if defined(__ARM_ARCH_4__) \
80 || defined(__ARM_ARCH_4T__) \ 81 || defined(__ARM_ARCH_4T__) \
81 || defined(__MARM_ARMV4__) 82 || defined(__MARM_ARMV4__)
82 #define WTF_ARM_ARCH_VERSION 4 83 #define WTF_ARM_ARCH_VERSION 4
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 # define WTF_CPU_ARM_THUMB2 0 152 # define WTF_CPU_ARM_THUMB2 0
152 # else 153 # else
153 # error "Unsupported ARM architecture" 154 # error "Unsupported ARM architecture"
154 # endif 155 # endif
155 #endif /* !defined(WTF_CPU_ARM_THUMB2) */ 156 #endif /* !defined(WTF_CPU_ARM_THUMB2) */
156 157
157 #if defined(__ARM_NEON__) && !defined(WTF_CPU_ARM_NEON) 158 #if defined(__ARM_NEON__) && !defined(WTF_CPU_ARM_NEON)
158 #define WTF_CPU_ARM_NEON 1 159 #define WTF_CPU_ARM_NEON 1
159 #endif 160 #endif
160 161
161 #if CPU(ARM_NEON) 162 #if CPU(ARM_NEON) && (!COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 7, 0))
162 // All NEON intrinsics usage can be disabled by this macro. 163 // All NEON intrinsics usage can be disabled by this macro.
163 #define HAVE_ARM_NEON_INTRINSICS 1 164 #define HAVE_ARM_NEON_INTRINSICS 1
164 #endif 165 #endif
165 166
166 #if defined(__ARM_ARCH_7S__) 167 #if defined(__ARM_ARCH_7S__)
167 #define WTF_CPU_APPLE_ARMV7S 1 168 #define WTF_CPU_APPLE_ARMV7S 1
168 #endif 169 #endif
169 170
170 #if !defined(WTF_CPU_64BIT) 171 #if !defined(WTF_CPU_64BIT)
171 #define WTF_CPU_32BIT 1 172 #define WTF_CPU_32BIT 1
172 #endif 173 #endif
173 174
174 #endif /* ARM */ 175 #endif /* ARM */
175 176
176 /* CPU(ARM64) - AArch64 64-bit */ 177 /* CPU(ARM64) - AArch64 64-bit */
177 #if defined(__aarch64__) 178 #if defined(__aarch64__)
178 #define WTF_CPU_ARM64 1 179 #define WTF_CPU_ARM64 1
179 #define WTF_CPU_64BIT 1 180 #define WTF_CPU_64BIT 1
180 #endif 181 #endif
181 182
182 #endif /* WTF_CPU_h */ 183 #endif /* WTF_CPU_h */
OLDNEW
« no previous file with comments | « sky/engine/wtf/ByteSwap.h ('k') | sky/engine/wtf/Compiler.h » ('j') | sky/engine/wtf/Compiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698