mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
x86/crc32_sse42.c: quiet unused function warning
Reviewed by: cem Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D11980
This commit is contained in:
parent
af0460beda
commit
9de5f67de2
1 changed files with 9 additions and 7 deletions
|
|
@ -52,19 +52,21 @@ _mm_crc32_u8(uint32_t x, uint8_t y)
|
|||
return (x);
|
||||
}
|
||||
|
||||
static __inline uint32_t
|
||||
_mm_crc32_u32(uint32_t x, uint32_t y)
|
||||
{
|
||||
__asm("crc32l %1,%0" : "+r" (x) : "r" (y));
|
||||
return (x);
|
||||
}
|
||||
|
||||
#ifdef __amd64__
|
||||
static __inline uint64_t
|
||||
_mm_crc32_u64(uint64_t x, uint64_t y)
|
||||
{
|
||||
__asm("crc32q %1,%0" : "+r" (x) : "r" (y));
|
||||
return (x);
|
||||
}
|
||||
#else
|
||||
static __inline uint32_t
|
||||
_mm_crc32_u32(uint32_t x, uint32_t y)
|
||||
{
|
||||
__asm("crc32l %1,%0" : "+r" (x) : "r" (y));
|
||||
return (x);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* CRC-32C (iSCSI) polynomial in reversed bit order. */
|
||||
#define POLY 0x82f63b78
|
||||
|
|
|
|||
Loading…
Reference in a new issue