decodeSyncAsm runs the decodeSync loop, choosing the BMI2 / safe variant.
(s *sequenceDecs, br *bitReader, ctx *decodeSyncAsmContext, safe bool)
| 70 | |
| 71 | // decodeSyncAsm runs the decodeSync loop, choosing the BMI2 / safe variant. |
| 72 | func 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 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…