791b7746 [nostalgia] Update liccor file 842e3587 [nostalgia] Update .gitignore for new location of scripts dir 318e7900 [ox] Update liccor file 9f338a74 [ox] Run liccor 645e48af [nostalgia,olympic] Run liccor ef92c8df [nostalgia] Make pkg-gba.py force lower case for pack tool 849d50be [nostalgia/core] Make getTileIdx return an Optional 845092f1 [turbine] Make common turbine.cpp file private to its target 75819a17 [ox/std] Add SmallMap::values() d66da857 [ox/std] SmallMap fixes, add findIdx function git-subtree-dir: deps/nostalgia git-subtree-split: 791b7746f331a3ad02cfdcdbc7c3ecde0cab7779
39 lines
885 B
C++
39 lines
885 B
C++
/*
|
|
* Copyright 2015 - 2025 gary@drinkingtea.net
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if defined(__x86_64__) || defined(_M_AMD64)
|
|
#define OX_ARCH_x86_64
|
|
#elif defined(__i386__) || defined(_M_IX86)
|
|
#define OX_ARCH_x86_32
|
|
#elif defined(__arm64__) || defined(__aarch64__) || defined(_M_ARM64)
|
|
#define OX_ARCH_ARM64
|
|
#elif defined(__arm__) || defined(_M_ARM)
|
|
#define OX_ARCH_ARM
|
|
#endif
|
|
|
|
#if defined(OX_ARCH_ARM)
|
|
|
|
#if defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__)
|
|
#define OX_HW_DIV 1
|
|
#else
|
|
#define OX_HW_DIV 0
|
|
#endif
|
|
|
|
#elif defined(OX_ARCH_x86_32) || defined(OX_ARCH_x86_64) || defined(OX_ARCH_ARM64)
|
|
|
|
#define OX_HW_DIV 1
|
|
|
|
#else
|
|
|
|
#error "Undefined hardware"
|
|
|
|
#endif
|
|
|