MCPcopy
hub / github.com/klauspost/compress / decodeSyncAsm

Function decodeSyncAsm

zstd/seqdec_amd64.go:72–83  ·  view source on GitHub ↗

decodeSyncAsm runs the decodeSync loop, choosing the BMI2 / safe variant.

(s *sequenceDecs, br *bitReader, ctx *decodeSyncAsmContext, safe bool)

Source from the content-addressed store, hash-verified

70
71// decodeSyncAsm runs the decodeSync loop, choosing the BMI2 / safe variant.
72func decodeSyncAsm(s *sequenceDecs, br *bitReader, ctx *decodeSyncAsmContext, safe bool) int {
73 if cpuinfo.HasBMI2() {
74 if safe {
75 return sequenceDecs_decodeSync_safe_bmi2(s, br, ctx)
76 }
77 return sequenceDecs_decodeSync_bmi2(s, br, ctx)
78 }
79 if safe {
80 return sequenceDecs_decodeSync_safe_amd64(s, br, ctx)
81 }
82 return sequenceDecs_decodeSync_amd64(s, br, ctx)
83}
84
85// sequenceDecs_executeSimple_amd64 implements the main loop of sequenceDecs.executeSimple in x86 asm.
86//

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…