[SCM] Samba Shared Repository - branch v4-0-test updated -
release-4-0-0alpha5-158-g396ea14
Andrew Bartlett
abartlet at samba.org
Fri Jul 25 07:44:07 GMT 2008
The branch, v4-0-test has been updated
via 396ea14732d667960091f4a2570341059914ecb6 (commit)
from 97d02730e8fde56de27aeb51612a4777c2953c9f (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test
- Log -----------------------------------------------------------------
commit 396ea14732d667960091f4a2570341059914ecb6
Author: Brad Hards <bradh at frogmouth.net>
Date: Fri Jul 25 17:43:21 2008 +1000
Define HAVE_ASM_BYTEORDER at all times
-----------------------------------------------------------------------
Summary of changes:
source/lib/util/byteorder.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/util/byteorder.h b/source/lib/util/byteorder.h
index 857bd1d..894becc 100644
--- a/source/lib/util/byteorder.h
+++ b/source/lib/util/byteorder.h
@@ -126,6 +126,8 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val)
__asm__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr));
}
#define HAVE_ASM_BYTEORDER 1
+#else
+#define HAVE_ASM_BYTEORDER 0
#endif
@@ -172,7 +174,7 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val)
#define SSVALS(buf,pos,val) SSVALX((buf),(pos),((int16_t)(val)))
#define SIVALS(buf,pos,val) SIVALX((buf),(pos),((int32_t)(val)))
-#else /* CAREFUL_ALIGNMENT */
+#else /* not CAREFUL_ALIGNMENT */
/* this handles things for architectures like the 386 that can handle
alignment errors */
@@ -197,7 +199,7 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val)
#define SSVALS(buf,pos,val) SVALS_NC(buf,pos)=((int16_t)(val))
#define SIVALS(buf,pos,val) IVALS_NC(buf,pos)=((int32_t)(val))
-#endif /* CAREFUL_ALIGNMENT */
+#endif /* not CAREFUL_ALIGNMENT */
/* now the reverse routines - these are used in nmb packets (mostly) */
#define SREV(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
--
Samba Shared Repository
More information about the samba-cvs
mailing list