diff options
author | Vinson Lee <[email protected]> | 2011-07-13 15:59:08 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2011-07-13 15:59:08 -0700 |
commit | 49967950a56de276ffcbaea80acbc9f5bd3207bc (patch) | |
tree | 47e96a229da78ae4032330e12a2c8e3afafc892b /src/gallium/auxiliary/vl/vl_vlc.h | |
parent | 88d647d83b77a9e45f66bff67513f908e6a23c01 (diff) |
g3dvl: s/inline/INLINE/
The inline keyword is not available in MSVC C.
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_vlc.h')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_vlc.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/vl/vl_vlc.h b/src/gallium/auxiliary/vl/vl_vlc.h index 8c5b3aca47d..e81b1e9afd2 100644 --- a/src/gallium/auxiliary/vl/vl_vlc.h +++ b/src/gallium/auxiliary/vl/vl_vlc.h @@ -53,6 +53,8 @@ #ifndef vl_vlc_h #define vl_vlc_h +#include "pipe/p_compiler.h" + struct vl_vlc { uint32_t buf; /* current 32 bit working set of buffer */ @@ -61,7 +63,7 @@ struct vl_vlc const uint8_t *max; /* ptr+len of buffer */ }; -static inline void +static INLINE void vl_vlc_restart(struct vl_vlc *vlc) { vlc->buf = (vlc->ptr[0] << 24) | (vlc->ptr[1] << 16) | (vlc->ptr[2] << 8) | vlc->ptr[3]; @@ -69,7 +71,7 @@ vl_vlc_restart(struct vl_vlc *vlc) vlc->ptr += 4; } -static inline void +static INLINE void vl_vlc_init(struct vl_vlc *vlc, const uint8_t *data, unsigned len) { vlc->ptr = data; @@ -77,7 +79,7 @@ vl_vlc_init(struct vl_vlc *vlc, const uint8_t *data, unsigned len) vl_vlc_restart(vlc); } -static inline bool +static INLINE bool vl_vlc_getbyte(struct vl_vlc *vlc) { vlc->buf <<= 8; @@ -102,7 +104,7 @@ do { \ } while (0) /* make sure that the full 32 bit of the buffer are valid */ -static inline void +static INLINE void vl_vlc_need32bits(struct vl_vlc *vlc) { vl_vlc_needbits(vlc); |