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

Side by Side Diff: src/third_party/dtoa/dtoa.c

Issue 2106007: Fix dtoa for the LP64 model on 64-bit systems, where long is 64 bits (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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 | « no previous file | 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 /**************************************************************** 1 /****************************************************************
2 * 2 *
3 * The author of this software is David M. Gay. 3 * The author of this software is David M. Gay.
4 * 4 *
5 * Copyright (c) 1991, 2000, 2001 by Lucent Technologies. 5 * Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
6 * 6 *
7 * Permission to use, copy, modify, and distribute this software for any 7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose without fee is hereby granted, provided that this entire notice 8 * purpose without fee is hereby granted, provided that this entire notice
9 * is included in all copies of any software which is or includes a copy 9 * is included in all copies of any software which is or includes a copy
10 * or modification of this software and in all copies of the supporting 10 * or modification of this software and in all copies of the supporting
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 * inexact bit is already set, and clear_inexact() sets the 157 * inexact bit is already set, and clear_inexact() sets the
158 * inexact bit to 0. When SET_INEXACT is #defined, strtod 158 * inexact bit to 0. When SET_INEXACT is #defined, strtod
159 * also does extra computations to set the underflow and overflow 159 * also does extra computations to set the underflow and overflow
160 * flags when appropriate (i.e., when the result is tiny and 160 * flags when appropriate (i.e., when the result is tiny and
161 * inexact or when it is a numeric value rounded to +-infinity). 161 * inexact or when it is a numeric value rounded to +-infinity).
162 * #define NO_ERRNO if strtod should not assign errno = ERANGE when 162 * #define NO_ERRNO if strtod should not assign errno = ERANGE when
163 * the result overflows to +-Infinity or underflows to 0. 163 * the result overflows to +-Infinity or underflows to 0.
164 */ 164 */
165 165
166 #ifndef Long 166 #ifndef Long
167 #if __LP64__
168 #define Long int
169 #else
167 #define Long long 170 #define Long long
168 #endif 171 #endif
172 #endif
169 #ifndef ULong 173 #ifndef ULong
170 typedef unsigned Long ULong; 174 typedef unsigned Long ULong;
171 #endif 175 #endif
172 176
173 #ifdef DEBUG 177 #ifdef DEBUG
174 #include "stdio.h" 178 #include "stdio.h"
175 #define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);} 179 #define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}
176 #endif 180 #endif
177 181
178 #include "stdlib.h" 182 #include "stdlib.h"
(...skipping 3142 matching lines...) Expand 10 before | Expand all | Expand 10 after
3321 Bfree(b); 3325 Bfree(b);
3322 *s = 0; 3326 *s = 0;
3323 *decpt = k + 1; 3327 *decpt = k + 1;
3324 if (rve) 3328 if (rve)
3325 *rve = s; 3329 *rve = s;
3326 return s0; 3330 return s0;
3327 } 3331 }
3328 #ifdef __cplusplus 3332 #ifdef __cplusplus
3329 } 3333 }
3330 #endif 3334 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698