MCPcopy Create free account
hub / github.com/egonelbre/exp / PackNybbleUnroll3

Function PackNybbleUnroll3

permutation/code.go:344–350  ·  view source on GitHub ↗
(perm [base]byte)

Source from the content-addressed store, hash-verified

342}
343
344func PackNybbleUnroll3(perm [base]byte) uint64 {
345 i0 := uint64(perm[0]) | uint64(perm[1])<<8 | uint64(perm[2])<<16 | uint64(perm[3])<<24
346 i1 := uint64(perm[4]) | uint64(perm[5])<<8 | uint64(perm[6])<<16 | uint64(perm[7])<<24
347 i2 := uint64(perm[8]) | uint64(perm[9])<<8
348 i3 := uint64(perm[10]) | uint64(perm[11])<<8
349 return i0 | i1<<4 | i2<<32 | i3<<36
350}
351
352const (
353 b12_0 = 1

Callers 2

CodeCopyBitNonstandardFunction · 0.85

Calls

no outgoing calls

Tested by 1