| OLD | NEW |
| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 || defined(__ARM_ARCH_7M__) \ | 136 || defined(__ARM_ARCH_7M__) \ |
| 137 || defined(__ARM_ARCH_7R__) \ | 137 || defined(__ARM_ARCH_7R__) \ |
| 138 || defined(__ARM_ARCH_7S__) | 138 || defined(__ARM_ARCH_7S__) |
| 139 #define WTF_THUMB_ARCH_VERSION 4 | 139 #define WTF_THUMB_ARCH_VERSION 4 |
| 140 | 140 |
| 141 #else | 141 #else |
| 142 #define WTF_THUMB_ARCH_VERSION 0 | 142 #define WTF_THUMB_ARCH_VERSION 0 |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 | 145 |
| 146 /* CPU(ARM_TRADITIONAL) - Thumb2 is not available, only traditional ARM (v4 or g
reater) */ | |
| 147 /* CPU(ARM_THUMB2) - Thumb2 instruction set is available */ | 146 /* CPU(ARM_THUMB2) - Thumb2 instruction set is available */ |
| 148 /* Only one of these will be defined. */ | 147 #if !defined(WTF_CPU_ARM_THUMB2) |
| 149 #if !defined(WTF_CPU_ARM_TRADITIONAL) && !defined(WTF_CPU_ARM_THUMB2) | |
| 150 # if defined(thumb2) || defined(__thumb2__) \ | 148 # if defined(thumb2) || defined(__thumb2__) \ |
| 151 || ((defined(__thumb) || defined(__thumb__)) && WTF_THUMB_ARCH_VERSION == 4) | 149 || ((defined(__thumb) || defined(__thumb__)) && WTF_THUMB_ARCH_VERSION == 4) |
| 152 # define WTF_CPU_ARM_TRADITIONAL 0 | |
| 153 # define WTF_CPU_ARM_THUMB2 1 | 150 # define WTF_CPU_ARM_THUMB2 1 |
| 154 # elif WTF_ARM_ARCH_AT_LEAST(4) | 151 # elif WTF_ARM_ARCH_AT_LEAST(4) |
| 155 # define WTF_CPU_ARM_TRADITIONAL 1 | |
| 156 # define WTF_CPU_ARM_THUMB2 0 | 152 # define WTF_CPU_ARM_THUMB2 0 |
| 157 # else | 153 # else |
| 158 # error "Not supported ARM architecture" | 154 # error "Unsupported ARM architecture" |
| 159 # endif | 155 # endif |
| 160 #elif CPU(ARM_TRADITIONAL) && CPU(ARM_THUMB2) /* Sanity Check */ | 156 #endif /* !defined(WTF_CPU_ARM_THUMB2) */ |
| 161 # error "Cannot use both of WTF_CPU_ARM_TRADITIONAL and WTF_CPU_ARM_THUMB2 plat
forms" | |
| 162 #endif /* !defined(WTF_CPU_ARM_TRADITIONAL) && !defined(WTF_CPU_ARM_THUMB2) */ | |
| 163 | 157 |
| 164 #if defined(__ARM_NEON__) && !defined(WTF_CPU_ARM_NEON) | 158 #if defined(__ARM_NEON__) && !defined(WTF_CPU_ARM_NEON) |
| 165 #define WTF_CPU_ARM_NEON 1 | 159 #define WTF_CPU_ARM_NEON 1 |
| 166 #endif | 160 #endif |
| 167 | 161 |
| 168 #if CPU(ARM_NEON) && (!COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 7, 0)) | 162 #if CPU(ARM_NEON) && (!COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 7, 0)) |
| 169 // All NEON intrinsics usage can be disabled by this macro. | 163 // All NEON intrinsics usage can be disabled by this macro. |
| 170 #define HAVE_ARM_NEON_INTRINSICS 1 | 164 #define HAVE_ARM_NEON_INTRINSICS 1 |
| 171 #endif | 165 #endif |
| 172 | 166 |
| 173 #if defined(__ARM_ARCH_7S__) | 167 #if defined(__ARM_ARCH_7S__) |
| 174 #define WTF_CPU_APPLE_ARMV7S 1 | 168 #define WTF_CPU_APPLE_ARMV7S 1 |
| 175 #endif | 169 #endif |
| 176 | 170 |
| 177 #if !defined(WTF_CPU_64BIT) | 171 #if !defined(WTF_CPU_64BIT) |
| 178 #define WTF_CPU_32BIT 1 | 172 #define WTF_CPU_32BIT 1 |
| 179 #endif | 173 #endif |
| 180 | 174 |
| 181 #endif /* ARM */ | 175 #endif /* ARM */ |
| 182 | 176 |
| 183 /* CPU(ARM64) - AArch64 64-bit */ | 177 /* CPU(ARM64) - AArch64 64-bit */ |
| 184 #if defined(__aarch64__) | 178 #if defined(__aarch64__) |
| 185 #define WTF_CPU_ARM64 1 | 179 #define WTF_CPU_ARM64 1 |
| 186 #define WTF_CPU_64BIT 1 | 180 #define WTF_CPU_64BIT 1 |
| 187 #endif | 181 #endif |
| 188 | 182 |
| 189 #endif /* WTF_CPU_h */ | 183 #endif /* WTF_CPU_h */ |
| OLD | NEW |