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