diff --git a/atom/types.go b/atom/types.go new file mode 100644 index 0000000..56ca122 --- /dev/null +++ b/atom/types.go @@ -0,0 +1,14 @@ + +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) +} +