summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-08-12 21:47:43 +0000
committergVisor bot <gvisor-bot@google.com>2021-08-12 21:47:43 +0000
commit4bb4179ff8e8d40d7f9d742b1d9667335e70cb4d (patch)
treec11584d3a002aeb55dbcd1142575d9879a421632 /pkg
parente14459ae7314d252bcd79b3546745fcdae8b90ec (diff)
parent345eb4a666eb64c31fc050209abac974520236a3 (diff)
Merge release-20210806.0-19-g345eb4a66 (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/atomicbitops/aligned_32bit_unsafe.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/atomicbitops/aligned_32bit_unsafe.go b/pkg/atomicbitops/aligned_32bit_unsafe.go
index a17d317cc..0e4765c48 100644
--- a/pkg/atomicbitops/aligned_32bit_unsafe.go
+++ b/pkg/atomicbitops/aligned_32bit_unsafe.go
@@ -39,9 +39,9 @@ type AlignedAtomicInt64 struct {
}
func (aa *AlignedAtomicInt64) ptr() *int64 {
- // On 32-bit systems, aa.value is is guaranteed to be 32-bit aligned.
- // It means that in the 12-byte aa.value, there are guaranteed to be 8
- // contiguous bytes with 64-bit alignment.
+ // On 32-bit systems, aa.value is guaranteed to be 32-bit aligned. It means
+ // that in the 12-byte aa.value, there are guaranteed to be 8 contiguous bytes
+ // with 64-bit alignment.
return (*int64)(unsafe.Pointer((uintptr(unsafe.Pointer(&aa.value)) + 4) &^ 7))
}
@@ -77,9 +77,9 @@ type AlignedAtomicUint64 struct {
}
func (aa *AlignedAtomicUint64) ptr() *uint64 {
- // On 32-bit systems, aa.value is is guaranteed to be 32-bit aligned.
- // It means that in the 12-byte aa.value, there are guaranteed to be 8
- // contiguous bytes with 64-bit alignment.
+ // On 32-bit systems, aa.value is guaranteed to be 32-bit aligned. It means
+ // that in the 12-byte aa.value, there are guaranteed to be 8 contiguous bytes
+ // with 64-bit alignment.
return (*uint64)(unsafe.Pointer((uintptr(unsafe.Pointer(&aa.value)) + 4) &^ 7))
}