LEFT | RIGHT |
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; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 Grunning, | 110 Grunning, |
111 Gsyscall, | 111 Gsyscall, |
112 Gwaiting, | 112 Gwaiting, |
113 Gmoribund, | 113 Gmoribund, |
114 Gdead, | 114 Gdead, |
115 }; | 115 }; |
116 enum | 116 enum |
117 { | 117 { |
118 true = 1, | 118 true = 1, |
119 false = 0, | 119 false = 0, |
| 120 }; |
| 121 enum |
| 122 { |
| 123 PtrSize = sizeof(void*), |
120 }; | 124 }; |
121 | 125 |
122 /* | 126 /* |
123 * structures | 127 * structures |
124 */ | 128 */ |
125 union Lock | 129 union Lock |
126 { | 130 { |
127 uint32 key; // futex-based impl | 131 uint32 key; // futex-based impl |
128 M* waitm; // linked list of waiting M's (sema-based impl) | 132 M* waitm; // linked list of waiting M's (sema-based impl) |
129 }; | 133 }; |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 void runtime·setprof(bool); | 823 void runtime·setprof(bool); |
820 | 824 |
821 // float.c | 825 // float.c |
822 extern float64 runtime·nan; | 826 extern float64 runtime·nan; |
823 extern float64 runtime·posinf; | 827 extern float64 runtime·posinf; |
824 extern float64 runtime·neginf; | 828 extern float64 runtime·neginf; |
825 extern uint64 ·nan; | 829 extern uint64 ·nan; |
826 extern uint64 ·posinf; | 830 extern uint64 ·posinf; |
827 extern uint64 ·neginf; | 831 extern uint64 ·neginf; |
828 #define ISNAN(f) ((f) != (f)) | 832 #define ISNAN(f) ((f) != (f)) |
LEFT | RIGHT |