LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 /* | 5 /* |
6 * basic types | 6 * basic types |
7 */ | 7 */ |
8 typedef signed char int8; | 8 typedef signed char int8; |
9 typedef unsigned char uint8; | 9 typedef unsigned char uint8; |
10 typedef signed short int16; | 10 typedef signed short int16; |
11 typedef unsigned short uint16; | 11 typedef unsigned short uint16; |
12 typedef signed int int32; | 12 typedef signed int int32; |
13 typedef unsigned int uint32; | 13 typedef unsigned int uint32; |
14 typedef signed long long int int64; | 14 typedef signed long long int int64; |
15 typedef unsigned long long int uint64; | 15 typedef unsigned long long int uint64; |
16 typedef float float32; | 16 typedef float float32; |
17 typedef double float64; | 17 typedef double float64; |
18 | 18 |
19 #ifdef _64BIT | 19 #ifdef _64BIT |
20 typedef uint64 uintptr; | 20 typedef uint64 uintptr; |
21 typedef int64 intptr; | 21 typedef int64 intptr; |
22 typedef»int32» » intgo; // Go's int | 22 typedef»int64» » intgo; // Go's int |
23 typedef»uint32» » uintgo; // Go's uint | 23 typedef»uint64» » uintgo; // Go's uint |
24 #else | 24 #else |
25 typedef uint32 uintptr; | 25 typedef uint32 uintptr; |
26 typedef int32 intptr; | 26 typedef int32 intptr; |
27 typedef int32 intgo; // Go's int | 27 typedef int32 intgo; // Go's int |
28 typedef uint32 uintgo; // Go's uint | 28 typedef uint32 uintgo; // Go's uint |
29 #endif | 29 #endif |
30 | 30 |
31 /* | 31 /* |
32 * get rid of C types | 32 * get rid of C types |
33 * the / / / forces a syntax error immediately, | 33 * the / / / forces a syntax error immediately, |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 extern float64 runtime·neginf; | 837 extern float64 runtime·neginf; |
838 extern uint64 ·nan; | 838 extern uint64 ·nan; |
839 extern uint64 ·posinf; | 839 extern uint64 ·posinf; |
840 extern uint64 ·neginf; | 840 extern uint64 ·neginf; |
841 #define ISNAN(f) ((f) != (f)) | 841 #define ISNAN(f) ((f) != (f)) |
842 | 842 |
843 enum | 843 enum |
844 { | 844 { |
845 UseSpanType = 1, | 845 UseSpanType = 1, |
846 }; | 846 }; |
LEFT | RIGHT |