/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/codegen/unsafe.go
16 строк
394 B
Keith Randall
test/codegen: get rid of \s
31 мар 2026, 21:01
31 мар 2026, 21:01
d6492e2
Код
Авторство
О чём код?
// asmcheck // Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen import "unsafe" func f(p unsafe.Pointer, x, y uintptr) int64 { p = unsafe.Pointer(uintptr(p) + x + y) // amd64:`MOVQ \(.*\)\(.*\*1\), ` // arm64:`MOVD \(R[0-9]+\)\(R[0-9]+\), ` return *(*int64)(p) }