diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-08-13 01:39:20 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-08-13 01:39:20 +0000 |
commit | 46b5b8da8357e7785760d83b79a75ceff1c61073 (patch) | |
tree | 6836f0153559f61a1898f654acd2ee04d555c208 /pm_config.in.h | |
parent | c0a081a4f8166e3f1195725df2d2b41bb3dc3a4f (diff) | |
download | netpbm-mirror-46b5b8da8357e7785760d83b79a75ceff1c61073.tar.gz netpbm-mirror-46b5b8da8357e7785760d83b79a75ceff1c61073.tar.xz netpbm-mirror-46b5b8da8357e7785760d83b79a75ceff1c61073.zip |
Release 10.73.04
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@2810 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'pm_config.in.h')
-rw-r--r-- | pm_config.in.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pm_config.in.h b/pm_config.in.h index 9d0dc303..fe8b8008 100644 --- a/pm_config.in.h +++ b/pm_config.in.h @@ -257,12 +257,17 @@ /* UNALIGNED_OK means it's OK to do unaligned memory access, e.g. loading an 8-byte word from an address that is not a multiple of 8. On some systems, such an access causes a trap and a signal. + + This determination is conservative - There may be cases where unaligned + access is OK and we say here it isn't. + + We know unaligned access is _not_ OK on at least SPARC and some ARM. */ -#if defined(__sparc__) -# define UNALIGNED_OK 0 -#else +#if defined(__x86_64__) | defined(__i486__) | defined(__vax__) # define UNALIGNED_OK 1 +#else +# define UNALIGNED_OK 0 #endif |