digest-xxhash 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/digest/xxhash/ext.c +1 -7
- data/ext/digest/xxhash/xxhash.h +890 -425
- data/lib/digest/xxhash/version.rb +1 -1
- data/test/produce-vectors-with-ruby-xxhash.rb +2 -2
- data/test/produce-vectors-with-xxhsum.rb +4 -4
- data/test/test.rb +8 -2
- data/test/test.vectors +28 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 368878caee2d20692288bb42697bd464828d073a9c88d0338ffc9a1fecf0b10a
|
|
4
|
+
data.tar.gz: 3efce38c0163bb0f4be9a7b3acfebe74793eed7fbeaaf98d02ba631afe434219
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 802c0eecd13331ba5d16932da3fc51df3018ed368c61a01d1ed286560841bf4d23f87bfd40268118509f6abc240dd9f2dfa52b3f07717842b0e96743601b9c5d
|
|
7
|
+
data.tar.gz: 4a0aba6c333a496f18c7d8ab4bf32613be39a498442f73212c5ac8f1245eece74971bfafc05d3c96538e870ca7d18153baa17341d957f3d2fef1bfbb4c386570
|
data/ext/digest/xxhash/ext.c
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2024 konsolebox
|
|
3
3
|
*
|
|
4
4
|
* MIT License
|
|
5
5
|
*
|
|
@@ -642,8 +642,6 @@ static VALUE _Digest_XXH64_reset(int argc, VALUE* argv, VALUE self)
|
|
|
642
642
|
|
|
643
643
|
break;
|
|
644
644
|
case T_FIXNUM:
|
|
645
|
-
_xxh64_reset(_get_state_xxh64(self), FIX2UINT(seed));
|
|
646
|
-
break;
|
|
647
645
|
case T_BIGNUM:
|
|
648
646
|
_xxh64_reset(_get_state_xxh64(self), NUM2ULL(seed));
|
|
649
647
|
break;
|
|
@@ -795,8 +793,6 @@ static VALUE _Digest_XXH3_64bits_reset(int argc, VALUE* argv, VALUE self)
|
|
|
795
793
|
|
|
796
794
|
break;
|
|
797
795
|
case T_FIXNUM:
|
|
798
|
-
_xxh3_64bits_reset(_get_state_xxh3_64bits(self), FIX2UINT(seed));
|
|
799
|
-
break;
|
|
800
796
|
case T_BIGNUM:
|
|
801
797
|
_xxh3_64bits_reset(_get_state_xxh3_64bits(self), NUM2ULL(seed));
|
|
802
798
|
break;
|
|
@@ -982,8 +978,6 @@ static VALUE _Digest_XXH3_128bits_reset(int argc, VALUE* argv, VALUE self)
|
|
|
982
978
|
|
|
983
979
|
break;
|
|
984
980
|
case T_FIXNUM:
|
|
985
|
-
_xxh3_128bits_reset(_get_state_xxh3_128bits(self), FIX2UINT(seed));
|
|
986
|
-
break;
|
|
987
981
|
case T_BIGNUM:
|
|
988
982
|
_xxh3_128bits_reset(_get_state_xxh3_128bits(self), NUM2ULL(seed));
|
|
989
983
|
break;
|