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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 enum | 140 enum |
141 { | 141 { |
142 PtrSize = sizeof(void*), | 142 PtrSize = sizeof(void*), |
143 }; | 143 }; |
144 enum | 144 enum |
145 { | 145 { |
146 // Per-M stack segment cache size. | 146 // Per-M stack segment cache size. |
147 StackCacheSize = 32, | 147 StackCacheSize = 32, |
148 // Global <-> per-M stack segment cache transfer batch size. | 148 // Global <-> per-M stack segment cache transfer batch size. |
149 StackCacheBatch = 16, | 149 StackCacheBatch = 16, |
150 }; | |
151 enum | |
152 { | |
153 // This value is generated by the linker and should be kept in | |
154 // sync with cmd/ld/lib.h | |
155 ArgsSizeUnknown = 0x80000000, | |
156 }; | 150 }; |
157 /* | 151 /* |
158 * structures | 152 * structures |
159 */ | 153 */ |
160 struct Lock | 154 struct Lock |
161 { | 155 { |
162 // Futex-based impl treats it as uint32 key, | 156 // Futex-based impl treats it as uint32 key, |
163 // while sema-based impl as M* waitm. | 157 // while sema-based impl as M* waitm. |
164 // Used to be a union, but unions break precise GC. | 158 // Used to be a union, but unions break precise GC. |
165 uintptr key; | 159 uintptr key; |
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 extern float64 runtime·neginf; | 1052 extern float64 runtime·neginf; |
1059 extern uint64 ·nan; | 1053 extern uint64 ·nan; |
1060 extern uint64 ·posinf; | 1054 extern uint64 ·posinf; |
1061 extern uint64 ·neginf; | 1055 extern uint64 ·neginf; |
1062 #define ISNAN(f) ((f) != (f)) | 1056 #define ISNAN(f) ((f) != (f)) |
1063 | 1057 |
1064 enum | 1058 enum |
1065 { | 1059 { |
1066 UseSpanType = 1, | 1060 UseSpanType = 1, |
1067 }; | 1061 }; |
LEFT | RIGHT |