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

Side by Side Diff: src/cpu.cc

Issue 121303005: Use std:: on symbols declared in C++-style C headers. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Same as the previous CL, but with an addition to cctest/test-log.cc Created 6 years, 11 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
« no previous file with comments | « src/conversions-inl.h ('k') | src/d8-readline.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 19 matching lines...) Expand all
30 #if V8_CC_MSVC 30 #if V8_CC_MSVC
31 #include <intrin.h> // __cpuid() 31 #include <intrin.h> // __cpuid()
32 #endif 32 #endif
33 #if V8_OS_POSIX 33 #if V8_OS_POSIX
34 #include <unistd.h> // sysconf() 34 #include <unistd.h> // sysconf()
35 #endif 35 #endif
36 #if V8_OS_QNX 36 #if V8_OS_QNX
37 #include <sys/syspage.h> // cpuinfo 37 #include <sys/syspage.h> // cpuinfo
38 #endif 38 #endif
39 39
40 #include <ctype.h>
41 #include <limits.h>
42 #include <stdio.h>
43 #include <stdlib.h>
44 #include <string.h>
40 #include <algorithm> 45 #include <algorithm>
41 #include <cctype>
42 #include <climits>
43 #include <cstdio>
44 #include <cstdlib>
45 #include <cstring>
46 46
47 #include "checks.h" 47 #include "checks.h"
48 #if V8_OS_WIN 48 #if V8_OS_WIN
49 #include "win32-headers.h" 49 #include "win32-headers.h"
50 #endif 50 #endif
51 51
52 namespace v8 { 52 namespace v8 {
53 namespace internal { 53 namespace internal {
54 54
55 #if V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64 55 #if V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 #if V8_OS_WIN 496 #if V8_OS_WIN
497 SYSTEM_INFO info; 497 SYSTEM_INFO info;
498 GetSystemInfo(&info); 498 GetSystemInfo(&info);
499 return info.dwNumberOfProcessors; 499 return info.dwNumberOfProcessors;
500 #else 500 #else
501 return static_cast<int>(sysconf(_SC_NPROCESSORS_ONLN)); 501 return static_cast<int>(sysconf(_SC_NPROCESSORS_ONLN));
502 #endif 502 #endif
503 } 503 }
504 504
505 } } // namespace v8::internal 505 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/conversions-inl.h ('k') | src/d8-readline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698