-
Notifications
You must be signed in to change notification settings - Fork 1
/
w3Int.h
42 lines (23 loc) · 1 KB
/
w3Int.h
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
// A WebAssembly codebase by Jay Krell
//
// https://webassembly.github.io/spec/core/binary/index.html
// https://webassembly.github.io/spec/core/_download/WebAssembly.pdf
#pragma once
uint64_t SignExtend (uint64_t value, uint32_t bits);
size_t IntMagnitude (ssize_t i);
uint32_t UIntGetPrecision (uint64_t a);
uint32_t IntGetPrecision (int64_t a);
uint32_t UIntToDec_GetLength (uint64_t b);
uint32_t UIntToDec (uint64_t a, PCH buf);
uint32_t IntToDec (int64_t a, PCH buf);
uint32_t IntToDec_GetLength (int64_t a);
uint32_t UIntToHex_GetLength (uint64_t b);
uint32_t IntToHex_GetLength (int64_t a);
void UIntToHexLength (uint64_t a, uint32_t len, PCH buf);
void IntToHexLength (int64_t a, uint32_t len, PCH buf);
uint32_t IntToHex (int64_t a, PCH buf);
uint32_t IntToHex8 (int64_t a, PCH buf);
uint32_t IntToHex_GetLength_AtLeast8 (int64_t a);
uint32_t UIntToHex_GetLength_AtLeast8 (uint64_t a);
uint32_t IntToHex_AtLeast8 (int64_t a, PCH buf);
uint32_t UIntToHex_AtLeast8 (uint64_t a, PCH buf);