Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Side by Side Diff: src/base/win32-math.h

Issue 656143004: Remove (untested) code for unsupported compilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix comment. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/base/platform/platform-win32.cc ('k') | src/base/win32-math.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Extra POSIX/ANSI routines for Win32 when using Visual Studio C++. Please
6 // refer to The Open Group Base Specification for specification of the correct
7 // semantics for these functions.
8 // (http://www.opengroup.org/onlinepubs/000095399/)
9
10 #ifndef V8_BASE_WIN32_MATH_H_
11 #define V8_BASE_WIN32_MATH_H_
12
13 #ifndef _MSC_VER
14 #error Wrong environment, expected MSVC.
15 #endif // _MSC_VER
16
17 // MSVC 2013+ provides implementations of all standard math functions.
18 #if (_MSC_VER < 1800)
19 enum {
20 FP_NAN,
21 FP_INFINITE,
22 FP_ZERO,
23 FP_SUBNORMAL,
24 FP_NORMAL
25 };
26
27
28 namespace std {
29
30 int isfinite(double x);
31 int isinf(double x);
32 int isnan(double x);
33 int isless(double x, double y);
34 int isgreater(double x, double y);
35 int fpclassify(double x);
36 int signbit(double x);
37
38 } // namespace std
39
40 #endif // _MSC_VER < 1800
41
42 #endif // V8_BASE_WIN32_MATH_H_
OLDNEW
« no previous file with comments | « src/base/platform/platform-win32.cc ('k') | src/base/win32-math.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698