| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) \ | |
| 74 && !defined(ANDROID) | 73 && !defined(ANDROID) |
| 75 #define WTF_CPU_MIDDLE_ENDIAN 1 | 74 #define WTF_CPU_MIDDLE_ENDIAN 1 |
| 76 | 75 |
| 77 #endif | 76 #endif |
| 78 | 77 |
| 79 /* Set WTF_ARM_ARCH_VERSION */ | 78 /* Set WTF_ARM_ARCH_VERSION */ |
| 80 #if defined(__ARM_ARCH_4__) \ | 79 #if defined(__ARM_ARCH_4__) \ |
| 81 || defined(__ARM_ARCH_4T__) \ | 80 || defined(__ARM_ARCH_4T__) \ |
| 82 || defined(__MARM_ARMV4__) | 81 || defined(__MARM_ARMV4__) |
| 83 #define WTF_ARM_ARCH_VERSION 4 | 82 #define WTF_ARM_ARCH_VERSION 4 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 # define WTF_CPU_ARM_THUMB2 0 | 151 # define WTF_CPU_ARM_THUMB2 0 |
| 153 # else | 152 # else |
| 154 # error "Unsupported ARM architecture" | 153 # error "Unsupported ARM architecture" |
| 155 # endif | 154 # endif |
| 156 #endif /* !defined(WTF_CPU_ARM_THUMB2) */ | 155 #endif /* !defined(WTF_CPU_ARM_THUMB2) */ |
| 157 | 156 |
| 158 #if defined(__ARM_NEON__) && !defined(WTF_CPU_ARM_NEON) | 157 #if defined(__ARM_NEON__) && !defined(WTF_CPU_ARM_NEON) |
| 159 #define WTF_CPU_ARM_NEON 1 | 158 #define WTF_CPU_ARM_NEON 1 |
| 160 #endif | 159 #endif |
| 161 | 160 |
| 162 #if CPU(ARM_NEON) && (!COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 7, 0)) | 161 #if CPU(ARM_NEON) |
| 163 // All NEON intrinsics usage can be disabled by this macro. | 162 // All NEON intrinsics usage can be disabled by this macro. |
| 164 #define HAVE_ARM_NEON_INTRINSICS 1 | 163 #define HAVE_ARM_NEON_INTRINSICS 1 |
| 165 #endif | 164 #endif |
| 166 | 165 |
| 167 #if defined(__ARM_ARCH_7S__) | 166 #if defined(__ARM_ARCH_7S__) |
| 168 #define WTF_CPU_APPLE_ARMV7S 1 | 167 #define WTF_CPU_APPLE_ARMV7S 1 |
| 169 #endif | 168 #endif |
| 170 | 169 |
| 171 #if !defined(WTF_CPU_64BIT) | 170 #if !defined(WTF_CPU_64BIT) |
| 172 #define WTF_CPU_32BIT 1 | 171 #define WTF_CPU_32BIT 1 |
| 173 #endif | 172 #endif |
| 174 | 173 |
| 175 #endif /* ARM */ | 174 #endif /* ARM */ |
| 176 | 175 |
| 177 /* CPU(ARM64) - AArch64 64-bit */ | 176 /* CPU(ARM64) - AArch64 64-bit */ |
| 178 #if defined(__aarch64__) | 177 #if defined(__aarch64__) |
| 179 #define WTF_CPU_ARM64 1 | 178 #define WTF_CPU_ARM64 1 |
| 180 #define WTF_CPU_64BIT 1 | 179 #define WTF_CPU_64BIT 1 |
| 181 #endif | 180 #endif |
| 182 | 181 |
| 183 #endif /* WTF_CPU_h */ | 182 #endif /* WTF_CPU_h */ |
| OLD | NEW |