(a, b atomicAlignment)
| 23 | ) |
| 24 | |
| 25 | func gcd(a, b atomicAlignment) atomicAlignment { |
| 26 | for b != 0 { |
| 27 | a, b = b, a%b |
| 28 | } |
| 29 | return a |
| 30 | } |
| 31 | |
| 32 | // typeAlignment returns the type alignment for the given type. |
| 33 | func (pc *passContext) typeAlignment(pkg *types.Package, obj types.Object) atomicAlignment { |