OLD | NEW |
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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 uintptr createstack[32];// Stack that created this thread. | 359 uintptr createstack[32];// Stack that created this thread. |
360 uint32 freglo[16]; // D[i] lsb and F[i] | 360 uint32 freglo[16]; // D[i] lsb and F[i] |
361 uint32 freghi[16]; // D[i] msb and F[i+16] | 361 uint32 freghi[16]; // D[i] msb and F[i+16] |
362 uint32 fflag; // floating point compare flags | 362 uint32 fflag; // floating point compare flags |
363 uint32 locked; // tracking for LockOSThread | 363 uint32 locked; // tracking for LockOSThread |
364 M* nextwaitm; // next M waiting for lock | 364 M* nextwaitm; // next M waiting for lock |
365 uintptr waitsema; // semaphore for parking on locks | 365 uintptr waitsema; // semaphore for parking on locks |
366 uint32 waitsemacount; | 366 uint32 waitsemacount; |
367 uint32 waitsemalock; | 367 uint32 waitsemalock; |
368 GCStats gcstats; | 368 GCStats gcstats; |
369 bool racecall; | |
370 bool needextram; | 369 bool needextram; |
371 bool (*waitunlockf)(G*, void*); | 370 bool (*waitunlockf)(G*, void*); |
372 void* waitlock; | 371 void* waitlock; |
373 #ifdef GOOS_windows | 372 #ifdef GOOS_windows |
374 void* thread; // thread handle | 373 void* thread; // thread handle |
375 // these are here because they are too large to be on the stack | 374 // these are here because they are too large to be on the stack |
376 // of low-level NOSPLIT functions. | 375 // of low-level NOSPLIT functions. |
377 LibCall libcall; | 376 LibCall libcall; |
378 uintptr libcallpc; // for cpu profiler | 377 uintptr libcallpc; // for cpu profiler |
379 uintptr libcallsp; | 378 uintptr libcallsp; |
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 extern float64 runtime·neginf; | 1155 extern float64 runtime·neginf; |
1157 extern uint64 ·nan; | 1156 extern uint64 ·nan; |
1158 extern uint64 ·posinf; | 1157 extern uint64 ·posinf; |
1159 extern uint64 ·neginf; | 1158 extern uint64 ·neginf; |
1160 #define ISNAN(f) ((f) != (f)) | 1159 #define ISNAN(f) ((f) != (f)) |
1161 | 1160 |
1162 enum | 1161 enum |
1163 { | 1162 { |
1164 UseSpanType = 1, | 1163 UseSpanType = 1, |
1165 }; | 1164 }; |
OLD | NEW |