export_amd64_test.go 487 B

1234567891011
  1. package checksum
  2. // archImpls exposes every hand-written implementation on this architecture
  3. // so the tests exercise them directly, independent of what the public
  4. // Checksum dispatches to on the running CPU. Without this, running the
  5. // suite on a non-AVX2 machine compared gvisor against itself and left the
  6. // assembly untested — silently. available=false makes the test skip loudly
  7. // instead.
  8. var archImpls = []archImpl{
  9. {name: "avx2", fn: checksumAVX2, available: hasAVX2},
  10. }