| Index: src/platform-posix.cc
|
| diff --git a/src/platform-posix.cc b/src/platform-posix.cc
|
| index 6375fddc8e4e881b070ac86d4f52ef800ebf2095..143bf3ca105c2a32ac7d340a24192d6525ca82d2 100644
|
| --- a/src/platform-posix.cc
|
| +++ b/src/platform-posix.cc
|
| @@ -43,7 +43,6 @@
|
|
|
| #include "v8.h"
|
|
|
| -#include "codegen.h"
|
| #include "isolate-inl.h"
|
| #include "platform.h"
|
|
|
| @@ -285,33 +284,6 @@ void OS::DebugBreak() {
|
| // ----------------------------------------------------------------------------
|
| // Math functions
|
|
|
| -double modulo(double x, double y) {
|
| - return std::fmod(x, y);
|
| -}
|
| -
|
| -
|
| -#define UNARY_MATH_FUNCTION(name, generator) \
|
| -static UnaryMathFunction fast_##name##_function = NULL; \
|
| -void init_fast_##name##_function() { \
|
| - fast_##name##_function = generator; \
|
| -} \
|
| -double fast_##name(double x) { \
|
| - return (*fast_##name##_function)(x); \
|
| -}
|
| -
|
| -UNARY_MATH_FUNCTION(exp, CreateExpFunction())
|
| -UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction())
|
| -
|
| -#undef UNARY_MATH_FUNCTION
|
| -
|
| -
|
| -void lazily_initialize_fast_exp() {
|
| - if (fast_exp_function == NULL) {
|
| - init_fast_exp_function();
|
| - }
|
| -}
|
| -
|
| -
|
| double OS::nan_value() {
|
| // NAN from math.h is defined in C99 and not in POSIX.
|
| return NAN;
|
| @@ -541,8 +513,6 @@ void OS::PostSetUp() {
|
| OS::memcopy_uint8_function =
|
| CreateMemCopyUint8Function(&OS::MemCopyUint8Wrapper);
|
| #endif
|
| - // fast_exp is initialized lazily.
|
| - init_fast_sqrt_function();
|
| }
|
|
|
|
|
|
|