mirror of
https://github.com/Kindelia/Kind2.git
synced 2024-09-11 07:15:45 +03:00
Fix U32.xor
This commit is contained in:
parent
51d47a726f
commit
c41c27edf3
@ -1,3 +1,2 @@
|
||||
Test: _
|
||||
let list = [for x in [0 to 10] where Nat.is_even(x): x * 2]
|
||||
List.show!(Nat.show, list)
|
||||
U32.murmur2(U32.murmur2(123))
|
||||
|
5
base/U32/murmur2.kind
Normal file
5
base/U32/murmur2.kind
Normal file
@ -0,0 +1,5 @@
|
||||
U32.murmur2(h: U32): U32
|
||||
let h = U32.xor(h, U32.shr(h, 13))
|
||||
let h = U32.mul(h, 0x5bd1e995)
|
||||
let h = U32.xor(h, U32.shr(h, 15))
|
||||
h
|
7
base/U32/murmur3.kind
Normal file
7
base/U32/murmur3.kind
Normal file
@ -0,0 +1,7 @@
|
||||
U32.murmur3(h: U32): U32
|
||||
let h = U32.xor(h, U32.shr(h, 16))
|
||||
let h = U32.mul(h, 0x85ebca6b)
|
||||
let h = U32.xor(h, U32.shr(h, 13))
|
||||
let h = U32.mul(h, 0xc2b2ae35)
|
||||
let h = U32.xor(h, U32.shr(h, 16))
|
||||
h
|
18
bin/js/package-lock.json
generated
18
bin/js/package-lock.json
generated
@ -1,24 +1,24 @@
|
||||
{
|
||||
"name": "kind-lang",
|
||||
"version": "1.0.97",
|
||||
"version": "1.0.108",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "kind-lang",
|
||||
"version": "1.0.97",
|
||||
"version": "1.0.108",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"formcore-js": "^0.1.92"
|
||||
"formcore-js": "^0.1.93"
|
||||
},
|
||||
"bin": {
|
||||
"kind": "src/main.js"
|
||||
}
|
||||
},
|
||||
"node_modules/formcore-js": {
|
||||
"version": "0.1.92",
|
||||
"resolved": "https://registry.npmjs.org/formcore-js/-/formcore-js-0.1.92.tgz",
|
||||
"integrity": "sha512-BKhzJXSpVC5IQbQm0KYLqVnIlyKvEKRppx9DcAG8+fjejmnUdg3WAYZYGZiKLr3Iwr1WgBB04PJQaYMtfjJN1Q==",
|
||||
"version": "0.1.93",
|
||||
"resolved": "https://registry.npmjs.org/formcore-js/-/formcore-js-0.1.93.tgz",
|
||||
"integrity": "sha512-Rkt2eBR/qaDguj01lW8P8jKFExl0+uxJV402Di9rSOnD2YhT64Pd8qFqGx7CqzR83iAnFhQseAgrLkS1Fz85bQ==",
|
||||
"bin": {
|
||||
"fmc": "main.js"
|
||||
}
|
||||
@ -26,9 +26,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"formcore-js": {
|
||||
"version": "0.1.92",
|
||||
"resolved": "https://registry.npmjs.org/formcore-js/-/formcore-js-0.1.92.tgz",
|
||||
"integrity": "sha512-BKhzJXSpVC5IQbQm0KYLqVnIlyKvEKRppx9DcAG8+fjejmnUdg3WAYZYGZiKLr3Iwr1WgBB04PJQaYMtfjJN1Q=="
|
||||
"version": "0.1.93",
|
||||
"resolved": "https://registry.npmjs.org/formcore-js/-/formcore-js-0.1.93.tgz",
|
||||
"integrity": "sha512-Rkt2eBR/qaDguj01lW8P8jKFExl0+uxJV402Di9rSOnD2YhT64Pd8qFqGx7CqzR83iAnFhQseAgrLkS1Fz85bQ=="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "kind-lang",
|
||||
"version": "1.0.108",
|
||||
"version": "1.0.109",
|
||||
"description": "Kind-Lang in JavaScript",
|
||||
"main": "src/kind.js",
|
||||
"scripts": {
|
||||
@ -20,6 +20,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/uwu-tech/kind#readme",
|
||||
"dependencies": {
|
||||
"formcore-js": "^0.1.92"
|
||||
"formcore-js": "^0.1.93"
|
||||
}
|
||||
}
|
||||
|
14
bin/package-lock.json
generated
14
bin/package-lock.json
generated
@ -9,13 +9,13 @@
|
||||
"version": "0.1.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"formcore-js": "^0.1.92"
|
||||
"formcore-js": "^0.1.93"
|
||||
}
|
||||
},
|
||||
"node_modules/formcore-js": {
|
||||
"version": "0.1.92",
|
||||
"resolved": "https://registry.npmjs.org/formcore-js/-/formcore-js-0.1.92.tgz",
|
||||
"integrity": "sha512-BKhzJXSpVC5IQbQm0KYLqVnIlyKvEKRppx9DcAG8+fjejmnUdg3WAYZYGZiKLr3Iwr1WgBB04PJQaYMtfjJN1Q==",
|
||||
"version": "0.1.93",
|
||||
"resolved": "https://registry.npmjs.org/formcore-js/-/formcore-js-0.1.93.tgz",
|
||||
"integrity": "sha512-Rkt2eBR/qaDguj01lW8P8jKFExl0+uxJV402Di9rSOnD2YhT64Pd8qFqGx7CqzR83iAnFhQseAgrLkS1Fz85bQ==",
|
||||
"bin": {
|
||||
"fmc": "main.js"
|
||||
}
|
||||
@ -23,9 +23,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"formcore-js": {
|
||||
"version": "0.1.92",
|
||||
"resolved": "https://registry.npmjs.org/formcore-js/-/formcore-js-0.1.92.tgz",
|
||||
"integrity": "sha512-BKhzJXSpVC5IQbQm0KYLqVnIlyKvEKRppx9DcAG8+fjejmnUdg3WAYZYGZiKLr3Iwr1WgBB04PJQaYMtfjJN1Q=="
|
||||
"version": "0.1.93",
|
||||
"resolved": "https://registry.npmjs.org/formcore-js/-/formcore-js-0.1.93.tgz",
|
||||
"integrity": "sha512-Rkt2eBR/qaDguj01lW8P8jKFExl0+uxJV402Di9rSOnD2YhT64Pd8qFqGx7CqzR83iAnFhQseAgrLkS1Fz85bQ=="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"formcore-js": "^0.1.92"
|
||||
"formcore-js": "^0.1.93"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user