mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 04:15:23 +03:00
LibC: Mark fenv-family function arguments as used on aarch64
This makes LibC build under aarch64 Clang.
This commit is contained in:
parent
5d00e21852
commit
7919fb8cae
Notes:
sideshowbarker
2024-07-17 02:25:56 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/7919fb8cae Pull-request: https://github.com/SerenityOS/serenity/pull/16722 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/FireFox317 ✅ Reviewed-by: https://github.com/Hendiadyoin1
@ -56,6 +56,7 @@ int fegetenv(fenv_t* env)
|
||||
return 1;
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
(void)env;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
asm volatile("fnstenv %0"
|
||||
@ -73,6 +74,7 @@ int fesetenv(fenv_t const* env)
|
||||
return 1;
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
(void)env;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
if (env == FE_DFL_ENV) {
|
||||
@ -98,6 +100,7 @@ int feholdexcept(fenv_t* env)
|
||||
fegetenv(¤t_env);
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
(void)env;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
current_env.__x87_fpu_env.__status_word &= ~FE_ALL_EXCEPT;
|
||||
@ -137,6 +140,8 @@ int fesetexceptflag(fexcept_t const* except, int exceptions)
|
||||
|
||||
exceptions &= FE_ALL_EXCEPT;
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
(void)exceptions;
|
||||
(void)except;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
current_env.__x87_fpu_env.__status_word &= exceptions;
|
||||
@ -192,6 +197,7 @@ int feclearexcept(int exceptions)
|
||||
fegetenv(¤t_env);
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
(void)exceptions;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
current_env.__x87_fpu_env.__status_word &= ~exceptions;
|
||||
@ -223,6 +229,7 @@ int feraiseexcept(int exceptions)
|
||||
exceptions &= FE_ALL_EXCEPT;
|
||||
|
||||
#ifdef AK_ARCH_AARCH64
|
||||
(void)exceptions;
|
||||
TODO_AARCH64();
|
||||
#else
|
||||
// While the order in which the exceptions is raised is unspecified, FE_OVERFLOW and FE_UNDERFLOW must be raised before FE_INEXACT, so handle that case in this branch
|
||||
|
Loading…
Reference in New Issue
Block a user