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

Side by Side Diff: sky/engine/wtf/dtoa.cpp

Issue 714393002: Remove support for MSVC (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 unified diff | Download patch
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 * 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 22 matching lines...) Expand all
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 42
43 #if COMPILER(MSVC)
44 #pragma warning(disable: 4244)
45 #pragma warning(disable: 4245)
46 #pragma warning(disable: 4554)
47 #endif
48
49 namespace WTF { 43 namespace WTF {
50 44
51 Mutex* s_dtoaP5Mutex; 45 Mutex* s_dtoaP5Mutex;
52 46
53 typedef union { 47 typedef union {
54 double d; 48 double d;
55 uint32_t L[2]; 49 uint32_t L[2];
56 } U; 50 } U;
57 51
58 #if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN) 52 #if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 { 1294 {
1301 Vector<LChar> conversionBuffer(length); 1295 Vector<LChar> conversionBuffer(length);
1302 for (size_t i = 0; i < length; ++i) 1296 for (size_t i = 0; i < length; ++i)
1303 conversionBuffer[i] = isASCII(string[i]) ? string[i] : 0; 1297 conversionBuffer[i] = isASCII(string[i]) ? string[i] : 0;
1304 return parseDouble(conversionBuffer.data(), length, parsedLength); 1298 return parseDouble(conversionBuffer.data(), length, parsedLength);
1305 } 1299 }
1306 1300
1307 } // namespace Internal 1301 } // namespace Internal
1308 1302
1309 } // namespace WTF 1303 } // namespace WTF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698