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

Unified Diff: runtime/platform/c99_support_win.h

Issue 11411188: Fix floating point issues on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Marked exp_A01_t01 as failing test on Linux and Mac systems only. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: runtime/platform/c99_support_win.h
diff --git a/runtime/platform/c99_support_win.h b/runtime/platform/c99_support_win.h
index 1d09eff6a7b7843931c4d5b026f24bd918f873d7..5603466b8fb7bff95065189dad089bbe4824ffe6 100644
--- a/runtime/platform/c99_support_win.h
+++ b/runtime/platform/c99_support_win.h
@@ -47,12 +47,4 @@ static inline double trunc(double x) {
}
}
-static inline double round(double x) {
Mads Ager (google) 2012/11/27 08:43:23 This is a missing c99 method. Could you move this
aam-me 2012/11/28 00:45:34 Done. I moved it to c99_support_win.cc, though, so
- if (x < 0) {
- return ceil(x - 0.5);
- } else {
- return floor(x + 0.5);
- }
-}
-
#endif // PLATFORM_C99_SUPPORT_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698