mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibM: Fix Toolchain build
We can't rely on libstdc++ inside LibC or LibM, since these libraries are part of the Toolchain bringup build.
This commit is contained in:
parent
941981ec4f
commit
dd696e7c75
Notes:
sideshowbarker
2024-07-19 11:52:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dd696e7c75c
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
#include <LibC/assert.h>
|
||||
#include <LibM/math.h>
|
||||
#include <limits>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -122,7 +121,7 @@ double exp(double exponent)
|
|||
if (integer_part & 8) result *= e_to_power<8>();
|
||||
if (integer_part & 16) result *= e_to_power<16>();
|
||||
if (integer_part & 32) result *= e_to_power<32>();
|
||||
if (integer_part >= 64) return std::numeric_limits<double>::infinity();
|
||||
if (integer_part >= 64) return __builtin_huge_val();
|
||||
}
|
||||
exponent -= integer_part;
|
||||
} else if (exponent < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue