joy4/atom/types.go
2016-04-19 08:56:08 +08:00

13 lines
174 B
Go

package atom
type Fixed uint32
type TimeStamp uint32
func IntToFixed(val int) Fixed {
return Fixed(val << 16)
}
func FixedToInt(val Fixed) int {
return int(val >> 16)
}