joy4/atom/types.go
2015-11-22 08:03:58 +08:00

15 lines
172 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)
}