summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
authorKeith Kanios <spook@dynatos.net>2007-04-12 02:40:54 +0000
committerKeith Kanios <spook@dynatos.net>2007-04-12 02:40:54 +0000
commitb7a89544d09455d7b2f4621c80b21ca457563f4a (patch)
tree6c89a3318c19c2bf364cbd95859e78fbc2d4e306 /sync.c
parentaa348dec7d6c5366efd10513ae4ff6fa2bbbd6ed (diff)
downloadnasm-b7a89544d09455d7b2f4621c80b21ca457563f4a.tar.gz
nasm-b7a89544d09455d7b2f4621c80b21ca457563f4a.tar.bz2
nasm-b7a89544d09455d7b2f4621c80b21ca457563f4a.zip
General push for x86-64 support, dubbed 0.99.00.
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sync.c b/sync.c
index 37bd221..fefdd86 100644
--- a/sync.c
+++ b/sync.c
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
+#include <inttypes.h>
#include "sync.h"
@@ -20,8 +21,8 @@
*/
static struct Sync {
- unsigned long pos;
- unsigned long length;
+ uint32_t pos;
+ uint32_t length;
} *synx;
static int nsynx;
@@ -49,7 +50,7 @@ void init_sync(void)
nsynx = 0;
}
-void add_sync(unsigned long pos, unsigned long length)
+void add_sync(uint32_t pos, uint32_t length)
{
int i;
@@ -70,7 +71,7 @@ void add_sync(unsigned long pos, unsigned long length)
}
}
-unsigned long next_sync(unsigned long position, unsigned long *length)
+uint32_t next_sync(uint32_t position, uint32_t *length)
{
while (nsynx > 0 && synx[1].pos + synx[1].length <= position) {
int i, j;