summaryrefslogtreecommitdiff
path: root/nasmlib.h
diff options
context:
space:
mode:
authorCharles Crayne <chuck@thor.crayne.org>2007-11-07 19:03:46 -0800
committerCharles Crayne <chuck@thor.crayne.org>2007-11-07 19:03:46 -0800
commit5fbbc8c2e7fbf6756fd1e8a400c6295c2428b897 (patch)
tree09ca73dd80523d4ab459961b01a1263ae657c5f7 /nasmlib.h
parent8c7eca493600aa2ee39554dfe8712fb30a8cec3f (diff)
downloadnasm-5fbbc8c2e7fbf6756fd1e8a400c6295c2428b897.tar.gz
Upgrade RAA functions to hold 64-bit data.
Diffstat (limited to 'nasmlib.h')
-rw-r--r--nasmlib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/nasmlib.h b/nasmlib.h
index 3850634f..43c07f03 100644
--- a/nasmlib.h
+++ b/nasmlib.h
@@ -212,7 +212,7 @@ void fwriteint64_t(int64_t data, FILE * fp);
* chunk.
*/
-#define RAA_BLKSIZE 65536 /* this many longs allocated at once */
+#define RAA_BLKSIZE 32768 /* this many longs allocated at once */
#define RAA_LAYERSIZE 32768 /* this many _pointers_ allocated */
typedef struct RAA RAA;
@@ -239,7 +239,7 @@ struct RAA {
int32_t stepsize;
union RAA_UNION {
struct RAA_LEAF {
- int32_t data[RAA_BLKSIZE];
+ int64_t data[RAA_BLKSIZE];
} l;
struct RAA_BRANCH {
struct RAA *data[RAA_LAYERSIZE];
@@ -249,8 +249,8 @@ struct RAA {
struct RAA *raa_init(void);
void raa_free(struct RAA *);
-int32_t raa_read(struct RAA *, int32_t);
-struct RAA *raa_write(struct RAA *r, int32_t posn, int32_t value);
+int64_t raa_read(struct RAA *, int32_t);
+struct RAA *raa_write(struct RAA *r, int32_t posn, int64_t value);
/*
* Routines to manage a dynamic sequential-access array, under the