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

Side by Side Diff: src/globals.h

Issue 619005: Fast algorithm for double->string conversion. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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 | « src/double.h ('k') | src/grisu3.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 #define V8_PTR_PREFIX "ll" 91 #define V8_PTR_PREFIX "ll"
92 #else // _MSC_VER 92 #else // _MSC_VER
93 #define V8_UINT64_C(x) (x ## UL) 93 #define V8_UINT64_C(x) (x ## UL)
94 #define V8_INT64_C(x) (x ## L) 94 #define V8_INT64_C(x) (x ## L)
95 #define V8_PTR_PREFIX "l" 95 #define V8_PTR_PREFIX "l"
96 #endif // _MSC_VER 96 #endif // _MSC_VER
97 #else // V8_HOST_ARCH_64_BIT 97 #else // V8_HOST_ARCH_64_BIT
98 #define V8_PTR_PREFIX "" 98 #define V8_PTR_PREFIX ""
99 #endif // V8_HOST_ARCH_64_BIT 99 #endif // V8_HOST_ARCH_64_BIT
100 100
101 // The following macro works on both 32 and 64-bit platforms.
102 // Usage: instead of writing 0x1234567890123456
103 // write V8_2PART_UINT64_C(0x12345678,90123456);
104 #define V8_2PART_UINT64_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
105
101 #define V8PRIxPTR V8_PTR_PREFIX "x" 106 #define V8PRIxPTR V8_PTR_PREFIX "x"
102 #define V8PRIdPTR V8_PTR_PREFIX "d" 107 #define V8PRIdPTR V8_PTR_PREFIX "d"
103 108
104 // Fix for Mac OS X defining uintptr_t as "unsigned long": 109 // Fix for Mac OS X defining uintptr_t as "unsigned long":
105 #if defined(__APPLE__) && defined(__MACH__) 110 #if defined(__APPLE__) && defined(__MACH__)
106 #undef V8PRIxPTR 111 #undef V8PRIxPTR
107 #define V8PRIxPTR "lx" 112 #define V8PRIxPTR "lx"
108 #endif 113 #endif
109 114
110 #if defined(__APPLE__) && defined(__MACH__) 115 #if defined(__APPLE__) && defined(__MACH__)
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 CMOV = 15, // x86 618 CMOV = 15, // x86
614 RDTSC = 4, // x86 619 RDTSC = 4, // x86
615 CPUID = 10, // x86 620 CPUID = 10, // x86
616 VFP3 = 1, // ARM 621 VFP3 = 1, // ARM
617 ARMv7 = 2, // ARM 622 ARMv7 = 2, // ARM
618 SAHF = 0}; // x86 623 SAHF = 0}; // x86
619 624
620 } } // namespace v8::internal 625 } } // namespace v8::internal
621 626
622 #endif // V8_GLOBALS_H_ 627 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/double.h ('k') | src/grisu3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698