github.com/primecitizens/pcz/std@v0.2.1/core/emu64/emu64_not386.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 //go:build arm || mips || mipsle 5 6 package emu64 7 8 func Float64ToUint32(n float64) uint32 { return uint32(n) } 9 func Uint32ToFloat64(n uint32) float64 { return float64(n) } 10 11 //go:nosplit 12 func dodiv(n, d uint64) (q, r uint64) { 13 // arm doesn't have a division instruction, so 14 // slowdodiv is the best that we can do. 15 16 // No _div64by32 on mips and using only _mul64by32 doesn't bring much benefit 17 return slowdodiv(n, d) 18 }