arch_macros.h (674B)
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 #ifndef LIB_JXL_BASE_ARCH_MACROS_H_ 7 #define LIB_JXL_BASE_ARCH_MACROS_H_ 8 9 // Defines the JXL_ARCH_* macros. 10 11 namespace jxl { 12 13 #if defined(__x86_64__) || defined(_M_X64) 14 #define JXL_ARCH_X64 1 15 #else 16 #define JXL_ARCH_X64 0 17 #endif 18 19 #if defined(__powerpc64__) || defined(_M_PPC) 20 #define JXL_ARCH_PPC 1 21 #else 22 #define JXL_ARCH_PPC 0 23 #endif 24 25 #if defined(__aarch64__) || defined(__arm__) 26 #define JXL_ARCH_ARM 1 27 #else 28 #define JXL_ARCH_ARM 0 29 #endif 30 31 } // namespace jxl 32 33 #endif // LIB_JXL_BASE_ARCH_MACROS_H_