/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue70481.go
20 строк
373 B
Keith Randall
cmd/compile: fix rewrite rules for multiply/add
21 ноя 2024, 18:06
21 ноя 2024, 18:06
0a0a7a5
Код
Авторство
О чём код?
// run // 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 main const maxUint64 = (1 << 64) - 1 //go:noinline func f(n uint64) uint64 { return maxUint64 - maxUint64%n } func main() { for i := uint64(1); i < 20; i++ { println(i, maxUint64-f(i)) } }