1*b5943815SEric Biggers // SPDX-License-Identifier: GPL-2.0-or-later 2*b5943815SEric Biggers /* 3*b5943815SEric Biggers * RISC-V optimized most-significant-bit-first CRC16 4*b5943815SEric Biggers * 5*b5943815SEric Biggers * Copyright 2025 Google LLC 6*b5943815SEric Biggers */ 7*b5943815SEric Biggers 8*b5943815SEric Biggers #include "crc-clmul.h" 9*b5943815SEric Biggers 10*b5943815SEric Biggers typedef u16 crc_t; 11*b5943815SEric Biggers #define LSB_CRC 0 12*b5943815SEric Biggers #include "crc-clmul-template.h" 13*b5943815SEric Biggers crc16_msb_clmul(u16 crc,const void * p,size_t len,const struct crc_clmul_consts * consts)14*b5943815SEric Biggersu16 crc16_msb_clmul(u16 crc, const void *p, size_t len, 15*b5943815SEric Biggers const struct crc_clmul_consts *consts) 16*b5943815SEric Biggers { 17*b5943815SEric Biggers return crc_clmul(crc, p, len, consts); 18*b5943815SEric Biggers } 19