Skip to content

Commit

Permalink
LibM: Fix Toolchain build
Browse files Browse the repository at this point in the history
We can't rely on libstdc++ inside LibC or LibM, since these libraries
are part of the Toolchain bringup build.
  • Loading branch information
awesomekling committed Sep 29, 2019
1 parent 941981e commit dd696e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Libraries/LibM/math.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <LibC/assert.h>
#include <LibM/math.h>
#include <limits>
#include <stdint.h>
#include <stdlib.h>

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit dd696e7

Please sign in to comment.