mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 06:21:29 +00:00
Add a mechanism to enable additional (experimental) features and start with sign extension operations; Hashing experimentation
This commit is contained in:
351
tests/compiler/std/hash.optimized.wat
Normal file
351
tests/compiler/std/hash.optimized.wat
Normal file
@ -0,0 +1,351 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iv (func (param i32)))
|
||||
(type $fi (func (param f32) (result i32)))
|
||||
(type $Fi (func (param f64) (result i32)))
|
||||
(type $v (func))
|
||||
(import "env" "logi" (func $std/hash/logi (param i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\01\00\00\00a")
|
||||
(data (i32.const 16) "\02\00\00\00a\00b")
|
||||
(data (i32.const 24) "\03\00\00\00a\00b\00c")
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/internal/hash/hash<usize> (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.and
|
||||
(tee_local $1
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
(i32.const -2128831035)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(func $~lib/internal/hash/hash<String> (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(set_local $2
|
||||
(i32.const -2128831035)
|
||||
)
|
||||
(set_local $3
|
||||
(i32.shl
|
||||
(i32.load
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(loop $continue|0
|
||||
(if
|
||||
(i32.lt_u
|
||||
(get_local $1)
|
||||
(get_local $3)
|
||||
)
|
||||
(block
|
||||
(set_local $2
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $2)
|
||||
(i32.load8_u offset=4
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.add
|
||||
(get_local $1)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(br $continue|0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(get_local $2)
|
||||
)
|
||||
(func $~lib/internal/hash/hash<f32> (; 3 ;) (type $fi) (param $0 f32) (result i32)
|
||||
(local $1 i32)
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.and
|
||||
(tee_local $1
|
||||
(i32.reinterpret/f32
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
(i32.const -2128831035)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(func $~lib/internal/hash/hash<f64> (; 4 ;) (type $Fi) (param $0 f64) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i64)
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(i32.and
|
||||
(tee_local $1
|
||||
(i32.wrap/i64
|
||||
(tee_local $2
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
(i32.const -2128831035)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(tee_local $1
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(get_local $2)
|
||||
(i64.const 32)
|
||||
)
|
||||
)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
(i32.shr_u
|
||||
(get_local $1)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(func $start (; 5 ;) (type $v)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<usize>
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<String>
|
||||
(i32.const 4)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<String>
|
||||
(i32.const 8)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<String>
|
||||
(i32.const 16)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<String>
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const 1)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const 1.100000023841858)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const inf)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const nan:0x400000)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const 1)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const 1.1)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const inf)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const nan:0x8000000000000)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
23
tests/compiler/std/hash.ts
Normal file
23
tests/compiler/std/hash.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import { hash } from "internal/hash";
|
||||
|
||||
declare function logi(i: i32): void;
|
||||
|
||||
logi(hash(null));
|
||||
logi(hash(""));
|
||||
logi(hash("a"));
|
||||
logi(hash("ab"));
|
||||
logi(hash("abc"));
|
||||
|
||||
logi(hash(<f32>0.0));
|
||||
logi(hash(<f32>1.0));
|
||||
logi(hash(<f32>1.1));
|
||||
logi(hash(<f32>-0));
|
||||
logi(hash(<f32>Infinity));
|
||||
logi(hash(<f32>NaN));
|
||||
|
||||
logi(hash(<f64>0.0));
|
||||
logi(hash(<f64>1.0));
|
||||
logi(hash(<f64>1.1));
|
||||
logi(hash(<f64>-0));
|
||||
logi(hash(<f64>Infinity));
|
||||
logi(hash(<f64>NaN));
|
453
tests/compiler/std/hash.untouched.wat
Normal file
453
tests/compiler/std/hash.untouched.wat
Normal file
@ -0,0 +1,453 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iv (func (param i32)))
|
||||
(type $fi (func (param f32) (result i32)))
|
||||
(type $F (func (result f64)))
|
||||
(type $Fi (func (param f64) (result i32)))
|
||||
(type $v (func))
|
||||
(import "env" "logi" (func $std/hash/logi (param i32)))
|
||||
(global $~lib/internal/allocator/AL_BITS i32 (i32.const 3))
|
||||
(global $~lib/internal/allocator/AL_SIZE i32 (i32.const 8))
|
||||
(global $~lib/internal/allocator/AL_MASK i32 (i32.const 7))
|
||||
(global $~lib/internal/allocator/MAX_SIZE_32 i32 (i32.const 1073741824))
|
||||
(global $~lib/internal/string/HEADER_SIZE i32 (i32.const 4))
|
||||
(global $~lib/internal/string/MAX_LENGTH i32 (i32.const 536870910))
|
||||
(global $~lib/internal/string/EMPTY i32 (i32.const 4))
|
||||
(global $~lib/internal/hash/FNV_OFFSET i32 (i32.const -2128831035))
|
||||
(global $~lib/internal/hash/FNV_PRIME i32 (i32.const 16777619))
|
||||
(global $Infinity f64 (f64.const inf))
|
||||
(global $NaN f64 (f64.const nan:0x8000000000000))
|
||||
(global $HEAP_BASE i32 (i32.const 36))
|
||||
(memory $0 1)
|
||||
(data (i32.const 4) "\00\00\00\00")
|
||||
(data (i32.const 8) "\01\00\00\00a\00")
|
||||
(data (i32.const 16) "\02\00\00\00a\00b\00")
|
||||
(data (i32.const 24) "\03\00\00\00a\00b\00c\00")
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/internal/hash/hash<usize> (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(set_local $1
|
||||
(i32.const -2128831035)
|
||||
)
|
||||
(block
|
||||
(set_local $2
|
||||
(get_local $0)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(get_local $2)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
)
|
||||
(return
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $~lib/internal/hash/hash<String> (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(set_local $1
|
||||
(i32.const -2128831035)
|
||||
)
|
||||
(block $break|0
|
||||
(block
|
||||
(set_local $2
|
||||
(i32.const 0)
|
||||
)
|
||||
(set_local $3
|
||||
(i32.shl
|
||||
(i32.load
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
)
|
||||
(loop $continue|0
|
||||
(if
|
||||
(i32.lt_u
|
||||
(get_local $2)
|
||||
(get_local $3)
|
||||
)
|
||||
(block
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.load8_u offset=4
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(get_local $2)
|
||||
)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $2
|
||||
(i32.add
|
||||
(get_local $2)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(br $continue|0)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(return
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $~lib/internal/hash/hash<f32> (; 3 ;) (type $fi) (param $0 f32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(set_local $1
|
||||
(i32.const -2128831035)
|
||||
)
|
||||
(block
|
||||
(set_local $2
|
||||
(i32.reinterpret/f32
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(get_local $2)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
)
|
||||
(return
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $~lib/internal/hash/hash<f64> (; 4 ;) (type $Fi) (param $0 f64) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i64)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(set_local $1
|
||||
(i32.const -2128831035)
|
||||
)
|
||||
(block
|
||||
(set_local $2
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(set_local $3
|
||||
(i32.wrap/i64
|
||||
(get_local $2)
|
||||
)
|
||||
)
|
||||
(set_local $4
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(get_local $2)
|
||||
(i64.const 32)
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(get_local $3)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $3)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $3)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.shr_u
|
||||
(get_local $3)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(get_local $4)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $4)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(get_local $4)
|
||||
(i32.const 16)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.mul
|
||||
(i32.xor
|
||||
(get_local $1)
|
||||
(i32.shr_u
|
||||
(get_local $4)
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(i32.const 16777619)
|
||||
)
|
||||
)
|
||||
)
|
||||
(return
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $start (; 5 ;) (type $v)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<usize>
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<String>
|
||||
(i32.const 4)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<String>
|
||||
(i32.const 8)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<String>
|
||||
(i32.const 16)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<String>
|
||||
(i32.const 24)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const 1)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const 1.100000023841858)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const inf)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f32>
|
||||
(f32.const nan:0x400000)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const 1)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const 1.1)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const 0)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const inf)
|
||||
)
|
||||
)
|
||||
(call $std/hash/logi
|
||||
(call $~lib/internal/hash/hash<f64>
|
||||
(f64.const nan:0x8000000000000)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user