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; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 G* g; | 216 G* g; |
217 void* ctxt; // this has to be a pointer so that GC scans it | 217 void* ctxt; // this has to be a pointer so that GC scans it |
218 uintreg ret; | 218 uintreg ret; |
219 uintptr lr; | 219 uintptr lr; |
220 }; | 220 }; |
221 // Known to compiler. | 221 // Known to compiler. |
222 // Changes here must also be made in src/cmd/gc/select.c's selecttype. | 222 // Changes here must also be made in src/cmd/gc/select.c's selecttype. |
223 struct SudoG | 223 struct SudoG |
224 { | 224 { |
225 G* g; | 225 G* g; |
226 » uint32*»selectdone; | 226 » SudoG**»signal; |
227 SudoG* link; | 227 SudoG* link; |
228 byte* elem; // data element | 228 byte* elem; // data element |
229 int64 releasetime; | 229 int64 releasetime; |
230 int32 nrelease; // -1 for acquire | 230 int32 nrelease; // -1 for acquire |
231 SudoG* waitlink; // G.waiting list | 231 SudoG* waitlink; // G.waiting list |
232 }; | 232 }; |
233 struct GCStats | 233 struct GCStats |
234 { | 234 { |
235 // the struct must consist of only uint64's, | 235 // the struct must consist of only uint64's, |
236 // because it is casted to uint64[]. | 236 // because it is casted to uint64[]. |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 extern float64 runtime·neginf; | 1165 extern float64 runtime·neginf; |
1166 extern uint64 ·nan; | 1166 extern uint64 ·nan; |
1167 extern uint64 ·posinf; | 1167 extern uint64 ·posinf; |
1168 extern uint64 ·neginf; | 1168 extern uint64 ·neginf; |
1169 #define ISNAN(f) ((f) != (f)) | 1169 #define ISNAN(f) ((f) != (f)) |
1170 | 1170 |
1171 enum | 1171 enum |
1172 { | 1172 { |
1173 UseSpanType = 1, | 1173 UseSpanType = 1, |
1174 }; | 1174 }; |
LEFT | RIGHT |