summaryrefslogtreecommitdiff
path: root/taia.h
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2009-02-15 01:02:15 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2009-02-15 01:02:15 +0000
commit4243bd22eccffbea9bfd41157f592fdef4156001 (patch)
treeae8cab7aed1994c2afd0a0c6cc3ac0dd76ec7b0f /taia.h
parentff813679e3a026bd4622b9fa426120dfc127b248 (diff)
downloadlibowfat-4243bd22eccffbea9bfd41157f592fdef4156001.tar.gz
libowfat-4243bd22eccffbea9bfd41157f592fdef4156001.zip
save 8 bytes in taia.h for 64-bit systems
Diffstat (limited to 'taia.h')
-rw-r--r--taia.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/taia.h b/taia.h
index 3c14a0b..9576b06 100644
--- a/taia.h
+++ b/taia.h
@@ -4,6 +4,7 @@
/* Times with 1 attosecond precision */
#include "tai.h"
+#include "uint32.h"
/* A struct taia value is a number between 0 inclusive and 2^64
* exclusive. The number is a multiple of 10^-18. The format of struct
@@ -11,8 +12,8 @@
* not look inside struct taia. */
typedef struct taia {
struct tai sec;
- unsigned long nano; /* 0...999999999 */
- unsigned long atto; /* 0...999999999 */
+ uint32 nano; /* 0...999999999 */
+ uint32 atto; /* 0...999999999 */
} tai6464;
/* extract seconds */