/* Return CRC16 of data, in the on-the-wire format used by SD protocol.  */
uint16_t sdspi_crc16(const uint8_t *data, size_t size)
/* Return CRC16 of data, in the on-the-wire format used by SD protocol.  */
uint16_t sdspi_crc16(const uint8_t *data, size_t size)
{
    return __builtin_bswap16(crc16_be(UINT16_MAX, data, size) ^ UINT16_MAX);
}