crc64_lsb.c 378 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * RISC-V optimized least-significant-bit-first CRC64
  4. *
  5. * Copyright 2025 Google LLC
  6. */
  7. #include "crc-clmul.h"
  8. typedef u64 crc_t;
  9. #define LSB_CRC 1
  10. #include "crc-clmul-template.h"
  11. u64 crc64_lsb_clmul(u64 crc, const void *p, size_t len,
  12. const struct crc_clmul_consts *consts)
  13. {
  14. return crc_clmul(crc, p, len, consts);
  15. }