diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-09-14 11:05:06 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-09-14 11:05:38 +0100 |
commit | b4835ea03d64261da5a892f9590c9977b06920e8 (patch) | |
tree | 6a70072d560618c9b703383d04db4c62d02d261e /src/gallium/drivers/llvmpipe/lp_bld_const.h | |
parent | fa150debf040488291ebd2222ad82f773d93c654 (diff) | |
download | external_mesa3d-b4835ea03d64261da5a892f9590c9977b06920e8.zip external_mesa3d-b4835ea03d64261da5a892f9590c9977b06920e8.tar.gz external_mesa3d-b4835ea03d64261da5a892f9590c9977b06920e8.tar.bz2 |
llvmpipe: Make lp_type a regular union.
Union not worth the hassle of violating C99 or adding a name to
the structure.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_const.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_const.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_const.h b/src/gallium/drivers/llvmpipe/lp_bld_const.h index 1934530..ffb302f 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_const.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_const.h @@ -42,67 +42,67 @@ #include <pipe/p_compiler.h> -union lp_type type; +struct lp_type type; unsigned -lp_mantissa(union lp_type type); +lp_mantissa(struct lp_type type); unsigned -lp_const_shift(union lp_type type); +lp_const_shift(struct lp_type type); unsigned -lp_const_offset(union lp_type type); +lp_const_offset(struct lp_type type); double -lp_const_scale(union lp_type type); +lp_const_scale(struct lp_type type); double -lp_const_min(union lp_type type); +lp_const_min(struct lp_type type); double -lp_const_max(union lp_type type); +lp_const_max(struct lp_type type); double -lp_const_eps(union lp_type type); +lp_const_eps(struct lp_type type); LLVMValueRef -lp_build_undef(union lp_type type); +lp_build_undef(struct lp_type type); LLVMValueRef -lp_build_zero(union lp_type type); +lp_build_zero(struct lp_type type); LLVMValueRef -lp_build_one(union lp_type type); +lp_build_one(struct lp_type type); LLVMValueRef -lp_build_const_scalar(union lp_type type, +lp_build_const_scalar(struct lp_type type, double val); LLVMValueRef -lp_build_int_const_scalar(union lp_type type, +lp_build_int_const_scalar(struct lp_type type, long long val); LLVMValueRef -lp_build_const_aos(union lp_type type, +lp_build_const_aos(struct lp_type type, double r, double g, double b, double a, const unsigned char *swizzle); LLVMValueRef -lp_build_const_mask_aos(union lp_type type, - boolean cond[4]); +lp_build_const_mask_aos(struct lp_type type, + const boolean cond[4]); #endif /* !LP_BLD_CONST_H */ |