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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 bool racecall; | 316 bool racecall; |
317 bool needextram; | 317 bool needextram; |
318 void* racepc; | 318 void* racepc; |
319 void (*waitunlockf)(Lock*); | 319 void (*waitunlockf)(Lock*); |
320 Lock* waitlock; | 320 Lock* waitlock; |
321 uint32 moreframesize_minalloc; | 321 uint32 moreframesize_minalloc; |
322 | 322 |
323 uintptr settype_buf[1024]; | 323 uintptr settype_buf[1024]; |
324 uintptr settype_bufsize; | 324 uintptr settype_bufsize; |
325 | 325 |
| 326 uintptr lasthmap; // XXX actually an Hmap* but linker crashes with that |
| 327 uintptr lastkey; // int value or string data pointer |
| 328 intgo lastlen; // int size in bytes, or string length in bytes |
| 329 uintptr lasthash; // last value of lasthmap + lastkey |
| 330 |
326 #ifdef GOOS_windows | 331 #ifdef GOOS_windows |
327 void* thread; // thread handle | 332 void* thread; // thread handle |
328 #endif | 333 #endif |
329 #ifdef GOOS_plan9 | 334 #ifdef GOOS_plan9 |
330 int8* notesig; | 335 int8* notesig; |
331 byte* errstr; | 336 byte* errstr; |
332 #endif | 337 #endif |
333 SEH* seh; | 338 SEH* seh; |
334 uintptr end[]; | 339 uintptr end[]; |
335 }; | 340 }; |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 extern float64 runtime·neginf; | 1001 extern float64 runtime·neginf; |
997 extern uint64 ·nan; | 1002 extern uint64 ·nan; |
998 extern uint64 ·posinf; | 1003 extern uint64 ·posinf; |
999 extern uint64 ·neginf; | 1004 extern uint64 ·neginf; |
1000 #define ISNAN(f) ((f) != (f)) | 1005 #define ISNAN(f) ((f) != (f)) |
1001 | 1006 |
1002 enum | 1007 enum |
1003 { | 1008 { |
1004 UseSpanType = 1, | 1009 UseSpanType = 1, |
1005 }; | 1010 }; |
OLD | NEW |