OLD | NEW |
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 * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights
reserved. |
7 * | 7 * |
8 * Permission to use, copy, modify, and distribute this software for any | 8 * Permission to use, copy, modify, and distribute this software for any |
9 * purpose without fee is hereby granted, provided that this entire notice | 9 * purpose without fee is hereby granted, provided that this entire notice |
10 * is included in all copies of any software which is or includes a copy | 10 * is included in all copies of any software which is or includes a copy |
(...skipping 21 matching lines...) Loading... |
32 * file. | 32 * file. |
33 */ | 33 */ |
34 | 34 |
35 #include "config.h" | 35 #include "config.h" |
36 #include "dtoa.h" | 36 #include "dtoa.h" |
37 | 37 |
38 #include "wtf/CPU.h" | 38 #include "wtf/CPU.h" |
39 #include "wtf/MathExtras.h" | 39 #include "wtf/MathExtras.h" |
40 #include "wtf/ThreadingPrimitives.h" | 40 #include "wtf/ThreadingPrimitives.h" |
41 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
42 #include <stdio.h> | |
43 | 42 |
44 #if COMPILER(MSVC) | 43 #if COMPILER(MSVC) |
45 #pragma warning(disable: 4244) | 44 #pragma warning(disable: 4244) |
46 #pragma warning(disable: 4245) | 45 #pragma warning(disable: 4245) |
47 #pragma warning(disable: 4554) | 46 #pragma warning(disable: 4554) |
48 #endif | 47 #endif |
49 | 48 |
50 namespace WTF { | 49 namespace WTF { |
51 | 50 |
52 Mutex* s_dtoaP5Mutex; | 51 Mutex* s_dtoaP5Mutex; |
(...skipping 1252 matching lines...) Loading... |
1305 { | 1304 { |
1306 Vector<LChar> conversionBuffer(length); | 1305 Vector<LChar> conversionBuffer(length); |
1307 for (size_t i = 0; i < length; ++i) | 1306 for (size_t i = 0; i < length; ++i) |
1308 conversionBuffer[i] = isASCII(string[i]) ? string[i] : 0; | 1307 conversionBuffer[i] = isASCII(string[i]) ? string[i] : 0; |
1309 return parseDouble(conversionBuffer.data(), length, parsedLength); | 1308 return parseDouble(conversionBuffer.data(), length, parsedLength); |
1310 } | 1309 } |
1311 | 1310 |
1312 } // namespace Internal | 1311 } // namespace Internal |
1313 | 1312 |
1314 } // namespace WTF | 1313 } // namespace WTF |
OLD | NEW |