replace __inline and __inline__ with INLINE macro
This commit is contained in:
@@ -419,9 +419,9 @@ struct s3v_context {
|
||||
#define S3VIRGEPACKCOLOR4444( r, g, b, a ) \
|
||||
((((a) & 0xf0) << 8) | (((r) & 0xf0) << 4) | ((g) & 0xf0) | ((b) >> 4))
|
||||
|
||||
static __inline GLuint s3vPackColor( GLuint cpp,
|
||||
GLubyte r, GLubyte g,
|
||||
GLubyte b, GLubyte a )
|
||||
static INLINE GLuint s3vPackColor( GLuint cpp,
|
||||
GLubyte r, GLubyte g,
|
||||
GLubyte b, GLubyte a )
|
||||
{
|
||||
unsigned int ret;
|
||||
DEBUG(("cpp = %i, r=0x%x, g=0x%x, b=0x%x, a=0x%x\n", cpp, r, g, b, a));
|
||||
|
||||
@@ -66,7 +66,7 @@ static const GLuint hw_prim[GL_POLYGON+1] = {
|
||||
PrimType_Polygon
|
||||
};
|
||||
|
||||
static __inline void s3vStartPrimitive( s3vContextPtr vmesa, GLenum prim )
|
||||
static INLINE void s3vStartPrimitive( s3vContextPtr vmesa, GLenum prim )
|
||||
{
|
||||
__DRIdrawablePrivate *dPriv = vmesa->driDrawable;
|
||||
|
||||
@@ -110,7 +110,7 @@ static __inline void s3vStartPrimitive( s3vContextPtr vmesa, GLenum prim )
|
||||
vmesa->restore_primitive = _hw_prim;
|
||||
}
|
||||
|
||||
static __inline void s3vEndPrimitive( s3vContextPtr vmesa )
|
||||
static INLINE void s3vEndPrimitive( s3vContextPtr vmesa )
|
||||
{
|
||||
/* GLcontext *ctx = vmesa->glCtx; */
|
||||
DEBUG(("s3vEndPrimitive\n"));
|
||||
|
||||
@@ -48,7 +48,7 @@ do { \
|
||||
sisFlushPrims(smesa); \
|
||||
} while (0)
|
||||
|
||||
static __inline GLuint *sisAllocDmaLow(sisContextPtr smesa, int bytes)
|
||||
static INLINE GLuint *sisAllocDmaLow(sisContextPtr smesa, int bytes)
|
||||
{
|
||||
GLuint *start;
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ static void TAG(sis6326_draw_point_mmio)(sisContextPtr smesa, char *verts)
|
||||
}
|
||||
#endif
|
||||
|
||||
static __inline void TAG(sis_vert_init)( void )
|
||||
static INLINE void TAG(sis_vert_init)( void )
|
||||
{
|
||||
sis_tri_func_mmio[SIS_STATES] = TAG(sis_draw_tri_mmio);
|
||||
sis_line_func_mmio[SIS_STATES] = TAG(sis_draw_line_mmio);
|
||||
|
||||
@@ -984,9 +984,9 @@ FX_grColorMaskv_NoLock(GLcontext *ctx, const GLboolean rgba[4]);
|
||||
#define TDFXPACKCOLOR4444( r, g, b, a ) \
|
||||
((((a) & 0xf0) << 8) | (((b) & 0xf0) << 4) | ((g) & 0xf0) | ((r) >> 4))
|
||||
|
||||
static __inline__ GrColor_t tdfxPackColor( GLuint cpp,
|
||||
GLubyte r, GLubyte g,
|
||||
GLubyte b, GLubyte a )
|
||||
static INLINE GrColor_t tdfxPackColor( GLuint cpp,
|
||||
GLubyte r, GLubyte g,
|
||||
GLubyte b, GLubyte a )
|
||||
{
|
||||
switch ( cpp ) {
|
||||
case 2:
|
||||
|
||||
@@ -51,9 +51,9 @@
|
||||
#define TRIDENTPACKCOLOR4444(r, g, b, a) \
|
||||
((((a) & 0xf0) << 8) | (((r) & 0xf0) << 4) | ((g) & 0xf0) | ((b) >> 4))
|
||||
|
||||
static __inline__ GLuint tridentPackColor( GLuint cpp,
|
||||
GLubyte r, GLubyte g,
|
||||
GLubyte b, GLubyte a )
|
||||
static INLINE GLuint tridentPackColor( GLuint cpp,
|
||||
GLubyte r, GLubyte g,
|
||||
GLubyte b, GLubyte a )
|
||||
{
|
||||
switch ( cpp ) {
|
||||
case 2:
|
||||
|
||||
@@ -123,7 +123,7 @@ static const GLubyte *viaGetString(GLcontext *ctx, GLenum name)
|
||||
*
|
||||
* \returns A pixel width that meets the alignment requirements.
|
||||
*/
|
||||
static __inline__ unsigned
|
||||
static INLINE unsigned
|
||||
buffer_align( unsigned width )
|
||||
{
|
||||
return (width + 0x0f) & ~0x0f;
|
||||
|
||||
@@ -58,7 +58,7 @@ void viaEmitBreadcrumb( struct via_context *vmesa );
|
||||
|
||||
void viaWrapPrimitive( struct via_context *vmesa );
|
||||
|
||||
static __inline__ GLuint *viaAllocDma(struct via_context *vmesa, int bytes)
|
||||
static INLINE GLuint *viaAllocDma(struct via_context *vmesa, int bytes)
|
||||
{
|
||||
if (vmesa->dmaLow + bytes > VIA_DMA_HIGHWATER) {
|
||||
viaFlushDma(vmesa);
|
||||
@@ -72,7 +72,7 @@ static __inline__ GLuint *viaAllocDma(struct via_context *vmesa, int bytes)
|
||||
}
|
||||
|
||||
|
||||
static GLuint __inline__ *viaExtendPrimitive(struct via_context *vmesa, int bytes)
|
||||
static GLuint INLINE *viaExtendPrimitive(struct via_context *vmesa, int bytes)
|
||||
{
|
||||
if (vmesa->dmaLow + bytes > VIA_DMA_HIGHWATER) {
|
||||
viaWrapPrimitive(vmesa);
|
||||
|
||||
@@ -511,9 +511,9 @@ void viaEmitState(struct via_context *vmesa)
|
||||
}
|
||||
|
||||
|
||||
static __inline__ GLuint viaPackColor(GLuint bpp,
|
||||
GLubyte r, GLubyte g,
|
||||
GLubyte b, GLubyte a)
|
||||
static INLINE GLuint viaPackColor(GLuint bpp,
|
||||
GLubyte r, GLubyte g,
|
||||
GLubyte b, GLubyte a)
|
||||
{
|
||||
switch (bpp) {
|
||||
case 16:
|
||||
|
||||
Reference in New Issue
Block a user