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

Side by Side Diff: Source/wtf/dtoa/utils.h

Issue 23444030: Remove unsupported Blink CPUs from CPU.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « Source/wtf/dtoa.cpp ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // evaluate: 89255.0/1e22. If the floating-point stack is 64 bits wide then 42 // evaluate: 89255.0/1e22. If the floating-point stack is 64 bits wide then
43 // the result is equal to 89255e-22. 43 // the result is equal to 89255e-22.
44 // The best way to test this, is to create a division-function and to compare 44 // The best way to test this, is to create a division-function and to compare
45 // the output of the division with the expected result. (Inlining must be 45 // the output of the division with the expected result. (Inlining must be
46 // disabled.) 46 // disabled.)
47 // On Linux,x86 89255e-22 != Div_double(89255.0/1e22) 47 // On Linux,x86 89255e-22 != Div_double(89255.0/1e22)
48 #if defined(_M_X64) || defined(__x86_64__) || \ 48 #if defined(_M_X64) || defined(__x86_64__) || \
49 defined(__ARMEL__) || \ 49 defined(__ARMEL__) || \
50 defined(_MIPS_ARCH_MIPS32R2) 50 defined(_MIPS_ARCH_MIPS32R2)
51 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 51 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
52 #elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(SPARC) || CPU(ALPHA)
53 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
54 #elif defined(_M_IX86) || defined(__i386__) 52 #elif defined(_M_IX86) || defined(__i386__)
55 #if defined(_WIN32) 53 #if defined(_WIN32)
56 // Windows uses a 64bit wide floating point stack. 54 // Windows uses a 64bit wide floating point stack.
57 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 55 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
58 #else 56 #else
59 #undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 57 #undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
60 #endif // _WIN32 58 #endif // _WIN32
61 #else 59 #else
62 #error Target architecture was not detected as supported by Double-Conversion. 60 #error Target architecture was not detected as supported by Double-Conversion.
63 #endif 61 #endif
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 template <class Dest, class Source> 299 template <class Dest, class Source>
302 inline Dest BitCast(Source* source) { 300 inline Dest BitCast(Source* source) {
303 return BitCast<Dest>(reinterpret_cast<uintptr_t>(source)); 301 return BitCast<Dest>(reinterpret_cast<uintptr_t>(source));
304 } 302 }
305 303
306 } // namespace double_conversion 304 } // namespace double_conversion
307 305
308 } // namespace WTF 306 } // namespace WTF
309 307
310 #endif // DOUBLE_CONVERSION_UTILS_H_ 308 #endif // DOUBLE_CONVERSION_UTILS_H_
OLDNEW
« no previous file with comments | « Source/wtf/dtoa.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698