mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
Everywhere: Use ARCH(AARCH64) instead of AK_ARCH_AARCH64
The former is typo-resistant after 349e54d5375a4a, so make use of that.
This commit is contained in:
parent
50f42407f6
commit
97b7e494e4
7 changed files with 29 additions and 29 deletions
|
@ -10,7 +10,7 @@
|
|||
// This is the size of the floating point environment image in protected mode
|
||||
static_assert(sizeof(__x87_floating_point_environment) == 28);
|
||||
|
||||
#ifndef AK_ARCH_AARCH64
|
||||
#if !ARCH(AARCH64)
|
||||
static u16 read_status_register()
|
||||
{
|
||||
u16 status_register;
|
||||
|
@ -55,7 +55,7 @@ int fegetenv(fenv_t* env)
|
|||
if (!env)
|
||||
return 1;
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
(void)env;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
|
@ -73,7 +73,7 @@ int fesetenv(fenv_t const* env)
|
|||
if (!env)
|
||||
return 1;
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
(void)env;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
|
@ -99,7 +99,7 @@ int feholdexcept(fenv_t* env)
|
|||
fenv_t current_env;
|
||||
fegetenv(¤t_env);
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
(void)env;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
|
@ -139,7 +139,7 @@ int fesetexceptflag(fexcept_t const* except, int exceptions)
|
|||
fegetenv(¤t_env);
|
||||
|
||||
exceptions &= FE_ALL_EXCEPT;
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
(void)exceptions;
|
||||
(void)except;
|
||||
TODO_AARCH64();
|
||||
|
@ -154,7 +154,7 @@ int fesetexceptflag(fexcept_t const* except, int exceptions)
|
|||
|
||||
int fegetround()
|
||||
{
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
// There's no way to signal whether the SSE rounding mode and x87 ones are different, so we assume they're the same
|
||||
|
@ -167,7 +167,7 @@ int fesetround(int rounding_mode)
|
|||
if (rounding_mode < FE_TONEAREST || rounding_mode > FE_TOWARDZERO)
|
||||
return 1;
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
auto control_word = read_control_word();
|
||||
|
@ -196,7 +196,7 @@ int feclearexcept(int exceptions)
|
|||
fenv_t current_env;
|
||||
fegetenv(¤t_env);
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
(void)exceptions;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
|
@ -210,7 +210,7 @@ int feclearexcept(int exceptions)
|
|||
|
||||
int fetestexcept(int exceptions)
|
||||
{
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
(void)exceptions;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
|
@ -228,7 +228,7 @@ int feraiseexcept(int exceptions)
|
|||
|
||||
exceptions &= FE_ALL_EXCEPT;
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
#if ARCH(AARCH64)
|
||||
(void)exceptions;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue