d4b533d41b
R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/259183002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21035 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
43 lines
986 B
C++
43 lines
986 B
C++
// Copyright 2011 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Extra POSIX/ANSI routines for Win32 when using Visual Studio C++. Please
|
|
// refer to The Open Group Base Specification for specification of the correct
|
|
// semantics for these functions.
|
|
// (http://www.opengroup.org/onlinepubs/000095399/)
|
|
|
|
#ifndef V8_WIN32_MATH_H_
|
|
#define V8_WIN32_MATH_H_
|
|
|
|
#ifndef _MSC_VER
|
|
#error Wrong environment, expected MSVC.
|
|
#endif // _MSC_VER
|
|
|
|
// MSVC 2013+ provides implementations of all standard math functions.
|
|
#if (_MSC_VER < 1800)
|
|
enum {
|
|
FP_NAN,
|
|
FP_INFINITE,
|
|
FP_ZERO,
|
|
FP_SUBNORMAL,
|
|
FP_NORMAL
|
|
};
|
|
|
|
|
|
namespace std {
|
|
|
|
int isfinite(double x);
|
|
int isinf(double x);
|
|
int isnan(double x);
|
|
int isless(double x, double y);
|
|
int isgreater(double x, double y);
|
|
int fpclassify(double x);
|
|
int signbit(double x);
|
|
|
|
} // namespace std
|
|
|
|
#endif // _MSC_VER < 1800
|
|
|
|
#endif // V8_WIN32_MATH_H_
|