• Eric Anholt's avatar
    Remove support for unaligned swaps. · fec9607c
    Eric Anholt authored
    The previous misc.h code went out of its way to allow swapping of
    unaligned pointers to values.  However, the members of an X
    request/response are always naturally aligned within the struct, and
    the buffers containing a request/response will also be aligned to at
    least 8 bytes, so we can just drop it.
    
            text      data   bss    dec      hex    filename
    before: 2215167	  51552	 132016	2398735	 249a0f	hw/xfree86/Xorg
    after:  2214919	  51552	 132016	2398487	 249917	hw/xfree86/Xorg
    Signed-off-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
    Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
    fec9607c