Debian Codegraph @

operand/zconst.go

raw symbols SCIP
1 // Code generated by make_const.go. DO NOT EDIT.
2
3 package operand
4
5 import "fmt"
6
7 // I8 is a 8-bit signed integer constant.
8 type I8 int8
9
10 func (i I8) Asm() string { return fmt.Sprintf("$%+d", i) }
11 func (i I8) Bytes() int { return 1 }
12 func (i I8) constant() {}
13
14 // U8 is a 8-bit unsigned integer constant.
15 type U8 uint8
16
17 func (u U8) Asm() string { return fmt.Sprintf("$%#02x", u) }
18 func (u U8) Bytes() int { return 1 }
19 func (u U8) constant() {}
20
21 // I16 is a 16-bit signed integer constant.
22 type I16 int16
23
24 func (i I16) Asm() string { return fmt.Sprintf("$%+d", i) }
25 func (i I16) Bytes() int { return 2 }
26 func (i I16) constant() {}
27
28 // U16 is a 16-bit unsigned integer constant.
29 type U16 uint16
30
31 func (u U16) Asm() string { return fmt.Sprintf("$%#04x", u) }
32 func (u U16) Bytes() int { return 2 }
33 func (u U16) constant() {}
34
35 // F32 is a 32-bit floating point constant.
36 type F32 float32
37
38 func (f F32) Asm() string { return fmt.Sprintf("$(%s)", f) }
39 func (f F32) Bytes() int { return 4 }
40 func (f F32) constant() {}
41
42 // I32 is a 32-bit signed integer constant.
43 type I32 int32
44
45 func (i I32) Asm() string { return fmt.Sprintf("$%+d", i) }
46 func (i I32) Bytes() int { return 4 }
47 func (i I32) constant() {}
48
49 // U32 is a 32-bit unsigned integer constant.
50 type U32 uint32
51
52 func (u U32) Asm() string { return fmt.Sprintf("$%#08x", u) }
53 func (u U32) Bytes() int { return 4 }
54 func (u U32) constant() {}
55
56 // F64 is a 64-bit floating point constant.
57 type F64 float64
58
59 func (f F64) Asm() string { return fmt.Sprintf("$(%s)", f) }
60 func (f F64) Bytes() int { return 8 }
61 func (f F64) constant() {}
62
63 // I64 is a 64-bit signed integer constant.
64 type I64 int64
65
66 func (i I64) Asm() string { return fmt.Sprintf("$%+d", i) }
67 func (i I64) Bytes() int { return 8 }
68 func (i I64) constant() {}
69
70 // U64 is a 64-bit unsigned integer constant.
71 type U64 uint64
72
73 func (u U64) Asm() string { return fmt.Sprintf("$%#016x", u) }
74 func (u U64) Bytes() int { return 8 }
75 func (u U64) constant() {}