forked from joelvaneenwyk/language84
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk.84
123 lines (83 loc) · 2.34 KB
/
chunk.84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
: global
: new
: size
: store_bytes
: fetch_bytes_ro
: fetch_bytes_rw
: store_byte store_uint8
: fetch_byte fetch_uint8
: store_uint8
: fetch_uint8
: store_uint16 store_uint16_le
: fetch_uint16 fetch_uint16_le
: store_uint16_le
: fetch_uint16_le
: store_uint32 store_uint32_le
: fetch_uint32 fetch_uint32_le
: store_uint32_le
: fetch_uint32_le
: store_uint64 store_uint64_le
: fetch_uint64 fetch_uint64_le
: store_uint64_le
: fetch_uint64_le
: store_int8
: fetch_int8
: store_int16 store_int16_le
: fetch_int16 fetch_int16_le
: store_int16_le
: fetch_int16_le
: store_int32 store_int32_le
: fetch_int32 fetch_int32_le
: store_int32_le
: fetch_int32_le
: store_int64 store_int64_le
: fetch_int64 fetch_int64_le
: store_int64_le
: fetch_int64_le
}
Where
Define (global i)
(Prim chunk_global i)
Define (new num_bytes)
(Prim chunk_new num_bytes)
Define (size chunk)
(Prim chunk_size chunk)
Define (store_bytes d d_start s s_start s_count)
(Prim chunk_store_bytes d d_start s s_start s_count)
Define (fetch_bytes_ro chunk start count)
(Prim chunk_fetch_bytes_ro chunk start count)
Define (fetch_bytes_rw chunk start count)
(Prim chunk_fetch_bytes_rw chunk start count)
Define (store_uint8 chunk i n)
(Prim chunk_store_uint8 chunk i n)
Define (fetch_uint8 chunk i)
(Prim chunk_fetch_uint8 chunk i)
Define (store_uint16_le chunk i n)
(Prim chunk_store_uint16_le chunk i n)
Define (fetch_uint16_le chunk i)
(Prim chunk_fetch_uint16_le chunk i)
Define (store_uint32_le chunk i n)
(Prim chunk_store_uint32_le chunk i n)
Define (fetch_uint32_le chunk i)
(Prim chunk_fetch_uint32_le chunk i)
Define (store_uint64_le chunk i n)
(Prim chunk_store_uint64_le chunk i n)
Define (fetch_uint64_le chunk i)
(Prim chunk_fetch_uint64_le chunk i)
Define (store_int8 chunk i n)
(Prim chunk_store_int8 chunk i n)
Define (fetch_int8 chunk i)
(Prim chunk_fetch_int8 chunk i)
Define (store_int16_le chunk i n)
(Prim chunk_store_int16_le chunk i n)
Define (fetch_int16_le chunk i)
(Prim chunk_fetch_int16_le chunk i)
Define (store_int32_le chunk i n)
(Prim chunk_store_int32_le chunk i n)
Define (fetch_int32_le chunk i)
(Prim chunk_fetch_int32_le chunk i)
Define (store_int64_le chunk i n)
(Prim chunk_store_int64_le chunk i n)
Define (fetch_int64_le chunk i)
(Prim chunk_fetch_int64_le chunk i)