mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
lang: have hasher_u32.update_u32 take a roslice
This commit is contained in:
1 parent
ea3fbc37f5
commit
29c4122360
11 files changed
+68
-42
No files matched your search
@@ -20,11 +20,11 @@
|
||||
// up_x86_avx2 is exactly the same as up_x86_sse42 except for the "choose
|
||||
// cpu_arch >= x86_avx2". With AVX, PCLMULQDQ has a three-operand form, not
|
||||
// just a two-operand form: https://www.felixcloutier.com/x86/pclmulqdq
|
||||
pri func ieee_hasher.up_x86_avx2!(x: slice base.u8),
|
||||
pri func ieee_hasher.up_x86_avx2!(x: roslice base.u8),
|
||||
choose cpu_arch >= x86_avx2,
|
||||
{
|
||||
var s : base.u32
|
||||
var p : slice base.u8
|
||||
var p : roslice base.u8
|
||||
|
||||
var util : base.x86_sse42_utility
|
||||
var k : base.x86_m128i
|
||||
|
||||
Reference in new issue
Block a user