From 1d76baf2ef43a84e9006a94895f83b70e7447148 Mon Sep 17 00:00:00 2001 From: leitner Date: Sun, 15 Feb 2009 01:02:15 +0000 Subject: [PATCH] save 8 bytes in taia.h for 64-bit systems --- CHANGES | 1 + taia.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 2401d74..7ca837b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,5 @@ 0.29: + save 8 bytes in taia.h for 64-bit systems 0.28: add uint64 pack and unpack routines 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 */