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

Side by Side Diff: runtime/platform/c99_support_win.h

Issue 13852044: Fix performance of parsing Mints. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « runtime/lib/integers.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef PLATFORM_C99_SUPPORT_WIN_H_ 5 #ifndef PLATFORM_C99_SUPPORT_WIN_H_
6 #define PLATFORM_C99_SUPPORT_WIN_H_ 6 #define PLATFORM_C99_SUPPORT_WIN_H_
7 7
8 // Visual C++ is missing a bunch of C99 math macros and 8 // Visual C++ is missing a bunch of C99 math macros and
9 // functions. Define them here. 9 // functions. Define them here.
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 if (fractpart >= 0.5) { 59 if (fractpart >= 0.5) {
60 return intpart + 1; 60 return intpart + 1;
61 } else if (fractpart > -0.5) { 61 } else if (fractpart > -0.5) {
62 return intpart; 62 return intpart;
63 } else { 63 } else {
64 return intpart - 1; 64 return intpart - 1;
65 } 65 }
66 } 66 }
67 67
68 // Windows does not have strtoll defined.
69 #if defined(_MSC_VER)
70 #define strtoll _strtoi64
71 #endif
72
73
68 #endif // PLATFORM_C99_SUPPORT_WIN_H_ 74 #endif // PLATFORM_C99_SUPPORT_WIN_H_
OLDNEW
« no previous file with comments | « runtime/lib/integers.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698