|
120 | 120 | (func $dv_set_i16 (param externref i32 i32 i32)))
|
121 | 121 | (import "bindings" "dv_set_i8"
|
122 | 122 | (func $dv_set_i8 (param externref i32 i32)))
|
| 123 | + (import "bindings" "dv_get_i64" |
| 124 | + (func $dv_get_i64_unaligned (param externref i32 i32) (result i64))) |
| 125 | + (import "bindings" "dv_get_i32" |
| 126 | + (func $dv_get_i32_unaligned (param externref i32 i32) (result i32))) |
| 127 | + (import "bindings" "dv_get_ui16" |
| 128 | + (func $dv_get_ui16_unaligned (param externref i32 i32) (result i32))) |
| 129 | + (import "bindings" "dv_set_i64" |
| 130 | + (func $dv_set_i64_unaligned (param externref i32 i64 i32))) |
| 131 | + (import "bindings" "dv_set_i32" |
| 132 | + (func $dv_set_i32_unaligned (param externref i32 i32 i32))) |
| 133 | + (import "bindings" "dv_set_i16" |
| 134 | + (func $dv_set_i16_unaligned (param externref i32 i32 i32))) |
123 | 135 | (import "bindings" "littleEndian" (global $littleEndian i32))
|
124 | 136 |
|
125 | 137 | (type $block (array (mut (ref eq))))
|
|
2018 | 2030 | (i32.const 0)))
|
2019 | 2031 | (then (call $caml_bound_error)))
|
2020 | 2032 | (ref.i31
|
2021 |
| - (call $dv_get_ui16 (local.get $view) (local.get $p) (i32.const 1)))) |
| 2033 | + (call $dv_get_ui16_unaligned |
| 2034 | + (local.get $view) (local.get $p) (i32.const 1)))) |
2022 | 2035 |
|
2023 | 2036 | (func (export "caml_ba_uint8_get32")
|
2024 | 2037 | (param $vba (ref eq)) (param $i (ref eq)) (result i32)
|
|
2035 | 2048 | (struct.get $bigarray $ba_dim (local.get $ba))
|
2036 | 2049 | (i32.const 0)))
|
2037 | 2050 | (then (call $caml_bound_error)))
|
2038 |
| - (return_call $dv_get_i32 (local.get $view) (local.get $p) (i32.const 1))) |
| 2051 | + (return_call $dv_get_i32_unaligned |
| 2052 | + (local.get $view) (local.get $p) (i32.const 1))) |
2039 | 2053 |
|
2040 | 2054 | (func (export "caml_ba_uint8_get64")
|
2041 | 2055 | (param $vba (ref eq)) (param $i (ref eq)) (result i64)
|
|
2052 | 2066 | (struct.get $bigarray $ba_dim (local.get $ba))
|
2053 | 2067 | (i32.const 0)))
|
2054 | 2068 | (then (call $caml_bound_error)))
|
2055 |
| - (call $dv_get_i64 |
| 2069 | + (call $dv_get_i64_unaligned |
2056 | 2070 | (local.get $view) (local.get $p) (i32.const 1)))
|
2057 | 2071 |
|
2058 | 2072 | (func (export "caml_ba_uint8_set16")
|
|
2072 | 2086 | (struct.get $bigarray $ba_dim (local.get $ba))
|
2073 | 2087 | (i32.const 0)))
|
2074 | 2088 | (then (call $caml_bound_error)))
|
2075 |
| - (call $dv_set_i16 |
| 2089 | + (call $dv_set_i16_unaligned |
2076 | 2090 | (local.get $view) (local.get $p) (local.get $d) (i32.const 1))
|
2077 | 2091 | (ref.i31 (i32.const 0)))
|
2078 | 2092 |
|
|
2092 | 2106 | (struct.get $bigarray $ba_dim (local.get $ba))
|
2093 | 2107 | (i32.const 0)))
|
2094 | 2108 | (then (call $caml_bound_error)))
|
2095 |
| - (call $dv_set_i32 |
| 2109 | + (call $dv_set_i32_unaligned |
2096 | 2110 | (local.get $view) (local.get $p) (local.get $d) (i32.const 1))
|
2097 | 2111 | (ref.i31 (i32.const 0)))
|
2098 | 2112 |
|
|
2112 | 2126 | (struct.get $bigarray $ba_dim (local.get $ba))
|
2113 | 2127 | (i32.const 0)))
|
2114 | 2128 | (then (call $caml_bound_error)))
|
2115 |
| - (call $dv_set_i64 |
| 2129 | + (call $dv_set_i64_unaligned |
2116 | 2130 | (local.get $view) (local.get $p) (local.get $d) (i32.const 1))
|
2117 | 2131 | (ref.i31 (i32.const 0)))
|
2118 | 2132 |
|
|
0 commit comments