Home | History | Annotate | Download | only in cgo

Lines Matching refs:Align

335 // Also assumes that gc convention is to word-align the
342 if off%t.Align != 0 {
343 pad := t.Align - off%t.Align
360 if off%t.Align != 0 {
361 pad := t.Align - off%t.Align
726 // gcc wants to 8-align int64s, but gc does not.
771 if off%t.Align != 0 {
772 pad := t.Align - off%t.Align
789 if off%t.Align != 0 {
790 pad := t.Align - off%t.Align
1218 "bool": {Size: 1, Align: 1, C: c("GoUint8")},
1219 "byte": {Size: 1, Align: 1, C: c("GoUint8")},
1220 "int": {Size: 0, Align: 0, C: c("GoInt")},
1221 "uint": {Size: 0, Align: 0, C: c("GoUint")},
1222 "rune": {Size: 4, Align: 4, C: c("GoInt32")},
1223 "int8": {Size: 1, Align: 1, C: c("GoInt8")},
1224 "uint8": {Size: 1, Align: 1, C: c("GoUint8")},
1225 "int16": {Size: 2, Align: 2, C: c("GoInt16")},
1226 "uint16": {Size: 2, Align: 2, C: c("GoUint16")},
1227 "int32": {Size: 4, Align: 4, C: c("GoInt32")},
1228 "uint32": {Size: 4, Align: 4, C: c("GoUint32")},
1229 "int64": {Size: 8, Align: 8, C: c("GoInt64")},
1230 "uint64": {Size: 8, Align: 8, C: c("GoUint64")},
1231 "float32": {Size: 4, Align: 4, C: c("GoFloat32")},
1232 "float64": {Size: 8, Align: 8, C: c("GoFloat64")},
1233 "complex64": {Size: 8, Align: 4, C: c("GoComplex64")},
1234 "complex128": {Size: 16, Align: 8, C: c("GoComplex128")},
1242 return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("%s*", x.C)}
1246 return &Type{Size: p.PtrSize * 3, Align: p.PtrSize, C: c("GoSlice")}
1252 return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("void*")}
1254 return &Type{Size: 2 * p.PtrSize, Align: p.PtrSize, C: c("GoInterface")}
1256 return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("GoMap")}
1258 return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("GoChan")}
1281 return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("GoUintptr")}
1285 return &Type{Size: 2 * p.PtrSize, Align: p.PtrSize, C: c("GoString")}
1288 return &Type{Size: 2 * p.PtrSize, Align: p.PtrSize, C: c("GoInterface")}
1295 rr.Align = p.IntSize
1298 if r.Align > p.PtrSize {
1299 r.Align = p.PtrSize
1304 return &Type{Size: 4, Align: 4, C: c("int")}
1308 return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("void*")}
1312 return &Type{Size: 4, Align: 4, C: c("int")}