util/u_endian: set PIPE_ARCH_*_ENDIAN to 1
authorDylan Baker <dylan@pnwbakers.com>
Thu, 6 Sep 2018 22:13:22 +0000 (15:13 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 5 Nov 2019 16:39:55 +0000 (16:39 +0000)
commitf9f60da813e69aacf541d25a24622c896f15ba98
treece1ba60e57b85a9ea16cfe12efcf3e1ab994d596
parent37e54736a7bab3397e316ae4493c2e3d4aebfa5e
util/u_endian: set PIPE_ARCH_*_ENDIAN to 1

This will allow it to be used as a drop in replacement for
_mesa_little_endian in a number of cases.

v2: - Always define PIPE_ARCH_LITTLE_ENDIAN and PIPE_ARCH_BIG_ENDIAN,
      define the one that reflects the host system to 1 and the other to 0
    - replace all uses of #ifdef, #ifndef, and #if defined() with #if
      and #if ! with PIPE_ARCH_*_ENDIAN

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
41 files changed:
src/amd/addrlib/src/chip/gfx10/gfx10_gb_reg.h
src/amd/addrlib/src/chip/gfx9/gfx9_gb_reg.h
src/amd/addrlib/src/chip/r800/si_gb_reg.h
src/amd/vulkan/vk_format_table.py
src/freedreno/vulkan/vk_format_table.py
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/gallivm/lp_bld_format_soa.c
src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c
src/gallium/auxiliary/gallivm/lp_bld_gather.c
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
src/gallium/auxiliary/gallivm/lp_bld_pack.c
src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
src/gallium/auxiliary/util/u_format_pack.py
src/gallium/auxiliary/util/u_pwr8.h
src/gallium/auxiliary/vl/vl_vlc.h
src/gallium/drivers/llvmpipe/lp_rast_tri.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/nouveau/nv30/nv30_fragprog.c
src/gallium/drivers/nouveau/nv30/nv30_vbo.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r600/r600_pipe_common.h
src/gallium/drivers/r600/r600_texture.c
src/gallium/drivers/radeonsi/si_clear.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/include/pipe/p_config.h
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_format.h
src/mapi/entry.c
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/r200/r200_blit.c
src/mesa/drivers/dri/r200/r200_texstate.c
src/mesa/drivers/dri/radeon/radeon_blit.c
src/mesa/drivers/dri/radeon/radeon_screen.c
src/mesa/drivers/dri/radeon/radeon_texture.c
src/mesa/drivers/osmesa/osmesa.c
src/util/sha1/sha1.c
src/util/u_endian.h
src/util/u_math.h