atomicbitops_state_autogen.go raw
1 // automatically generated by stateify.
2
3 //go:build (amd64 || arm64) && !amd64 && !arm64
4 // +build amd64 arm64
5 // +build !amd64
6 // +build !arm64
7
8 package atomicbitops
9
10 import (
11 "context"
12
13 "gvisor.dev/gvisor/pkg/state"
14 )
15
16 func (f *Float64) StateTypeName() string {
17 return "pkg/atomicbitops.Float64"
18 }
19
20 func (f *Float64) StateFields() []string {
21 return []string{
22 "bits",
23 }
24 }
25
26 func (f *Float64) beforeSave() {}
27
28 // +checklocksignore
29 func (f *Float64) StateSave(stateSinkObject state.Sink) {
30 f.beforeSave()
31 stateSinkObject.Save(0, &f.bits)
32 }
33
34 func (f *Float64) afterLoad(context.Context) {}
35
36 // +checklocksignore
37 func (f *Float64) StateLoad(ctx context.Context, stateSourceObject state.Source) {
38 stateSourceObject.Load(0, &f.bits)
39 }
40
41 func init() {
42 state.Register((*Float64)(nil))
43 }
44