mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
AK+readelf: Issue error when using ARCH(arch) with nonexistent arch
This disallows erroneous `#if ARCH(x86_64)` (note lowercase x).
This commit is contained in:
parent
11b40dbcf5
commit
4536b80a62
Notes:
sideshowbarker
2024-07-17 00:25:35 +09:00
Author: https://github.com/DanShaders
Commit: 4536b80a62
Pull-request: https://github.com/SerenityOS/serenity/pull/17692
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/nico ✅
Reviewed-by: https://github.com/trflynn89
3 changed files with 14 additions and 5 deletions
|
@ -77,7 +77,7 @@ ALWAYS_INLINE static f32x4 exp_approximate(f32x4 v)
|
|||
|
||||
ALWAYS_INLINE static f32x4 sqrt(f32x4 v)
|
||||
{
|
||||
#if ARCH(x86_64)
|
||||
#if ARCH(X86_64)
|
||||
return __builtin_ia32_sqrtps(v);
|
||||
#else
|
||||
return f32x4 {
|
||||
|
@ -91,7 +91,7 @@ ALWAYS_INLINE static f32x4 sqrt(f32x4 v)
|
|||
|
||||
ALWAYS_INLINE static f32x4 rsqrt(f32x4 v)
|
||||
{
|
||||
#if ARCH(x86_64)
|
||||
#if ARCH(X86_64)
|
||||
return __builtin_ia32_rsqrtps(v);
|
||||
#else
|
||||
return f32x4 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue