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

Side by Side Diff: third_party/sqlite/src/src/hwtime.h

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 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
« no previous file with comments | « third_party/sqlite/src/src/hash.c ('k') | third_party/sqlite/src/src/in-operator.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ** 2008 May 27 2 ** 2008 May 27
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
11 ****************************************************************************** 11 ******************************************************************************
12 ** 12 **
13 ** This file contains inline asm code for retrieving "high-performance" 13 ** This file contains inline asm code for retrieving "high-performance"
14 ** counters for x86 class CPUs. 14 ** counters for x86 class CPUs.
15 */ 15 */
16 #ifndef _HWTIME_H_ 16 #ifndef SQLITE_HWTIME_H
17 #define _HWTIME_H_ 17 #define SQLITE_HWTIME_H
18 18
19 /* 19 /*
20 ** The following routine only works on pentium-class (or newer) processors. 20 ** The following routine only works on pentium-class (or newer) processors.
21 ** It uses the RDTSC opcode to read the cycle count value out of the 21 ** It uses the RDTSC opcode to read the cycle count value out of the
22 ** processor and returns that value. This can be used for high-res 22 ** processor and returns that value. This can be used for high-res
23 ** profiling. 23 ** profiling.
24 */ 24 */
25 #if (defined(__GNUC__) || defined(_MSC_VER)) && \ 25 #if (defined(__GNUC__) || defined(_MSC_VER)) && \
26 (defined(i386) || defined(__i386__) || defined(_M_IX86)) 26 (defined(i386) || defined(__i386__) || defined(_M_IX86))
27 27
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 ** To compile without implementing sqlite3Hwtime() for your platform, 75 ** To compile without implementing sqlite3Hwtime() for your platform,
76 ** you can remove the above #error and use the following 76 ** you can remove the above #error and use the following
77 ** stub function. You will lose timing support for many 77 ** stub function. You will lose timing support for many
78 ** of the debugging and testing utilities, but it should at 78 ** of the debugging and testing utilities, but it should at
79 ** least compile and run. 79 ** least compile and run.
80 */ 80 */
81 sqlite_uint64 sqlite3Hwtime(void){ return ((sqlite_uint64)0); } 81 sqlite_uint64 sqlite3Hwtime(void){ return ((sqlite_uint64)0); }
82 82
83 #endif 83 #endif
84 84
85 #endif /* !defined(_HWTIME_H_) */ 85 #endif /* !defined(SQLITE_HWTIME_H) */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/src/hash.c ('k') | third_party/sqlite/src/src/in-operator.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698