summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/vax/md.h
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-05-14 13:51:51 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-05-14 13:51:51 +0000
commitabb90c4e591eeaff801faae05e5e267cd4dd67dc (patch)
tree08dedeed870ba99c79f3c49d921f263d9c430dfd /gnu/usr.bin/ld/vax/md.h
parent7ee5cfc1db56a98ce1a2531dfb003c548501ff56 (diff)
Hey, vax is LE!
Diffstat (limited to 'gnu/usr.bin/ld/vax/md.h')
-rw-r--r--gnu/usr.bin/ld/vax/md.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/gnu/usr.bin/ld/vax/md.h b/gnu/usr.bin/ld/vax/md.h
index 8328f9182d9..5690d1a04e4 100644
--- a/gnu/usr.bin/ld/vax/md.h
+++ b/gnu/usr.bin/ld/vax/md.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: md.h,v 1.3 1998/05/11 20:27:19 niklas Exp $ */
+/* $OpenBSD: md.h,v 1.4 1998/05/14 13:51:50 niklas Exp $ */
/* $NetBSD: md.h,v 1.1 1995/10/19 13:10:20 ragge Exp $ */
/*
* Copyright (c) 1993 Paul Kranenburg
@@ -150,31 +150,31 @@ typedef struct jmpslot {
#define get_byte(p) ( ((unsigned char *)(p))[0] )
-#define get_short(p) ( ( ((unsigned char *)(p))[0] << 8) | \
- ( ((unsigned char *)(p))[1] ) \
+#define get_short(p) ( ( ((unsigned char *)(p))[0] ) | \
+ ( ((unsigned char *)(p))[1] << 8) \
)
-#define get_long(p) ( ( ((unsigned char *)(p))[0] << 24) | \
- ( ((unsigned char *)(p))[1] << 16) | \
- ( ((unsigned char *)(p))[2] << 8 ) | \
- ( ((unsigned char *)(p))[3] ) \
+#define get_long(p) ( ( ((unsigned char *)(p))[0] ) | \
+ ( ((unsigned char *)(p))[1] << 8 ) | \
+ ( ((unsigned char *)(p))[2] << 16) | \
+ ( ((unsigned char *)(p))[3] << 24) \
)
#define put_byte(p, v) { ((unsigned char *)(p))[0] = ((unsigned long)(v)); }
#define put_short(p, v) { ((unsigned char *)(p))[0] = \
- ((((unsigned long)(v)) >> 8) & 0xff); \
+ ((((unsigned long)(v)) ) & 0xff); \
((unsigned char *)(p))[1] = \
- ((((unsigned long)(v)) ) & 0xff); }
+ ((((unsigned long)(v)) >> 8) & 0xff); }
#define put_long(p, v) { ((unsigned char *)(p))[0] = \
- ((((unsigned long)(v)) >> 24) & 0xff); \
+ ((((unsigned long)(v)) ) & 0xff); \
((unsigned char *)(p))[1] = \
- ((((unsigned long)(v)) >> 16) & 0xff); \
- ((unsigned char *)(p))[2] = \
((((unsigned long)(v)) >> 8) & 0xff); \
+ ((unsigned char *)(p))[2] = \
+ ((((unsigned long)(v)) >> 16) & 0xff); \
((unsigned char *)(p))[3] = \
- ((((unsigned long)(v)) ) & 0xff); }
+ ((((unsigned long)(v)) >> 24) & 0xff); }
#ifdef NEED_SWAP