From 0e52184c48f47023a5d28167a99ee3651bd7af6e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 15 Sep 2000 15:54:25 +0000 Subject: [PATCH] moved DECLARE_XFORM_GROUP macros outside of gl_init_3dnow_asm_transforms() to silence compiler warnings --- src/mesa/x86/3dnow.c | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/mesa/x86/3dnow.c b/src/mesa/x86/3dnow.c index dd085b6cbe0..c87ecd6ba7f 100644 --- a/src/mesa/x86/3dnow.c +++ b/src/mesa/x86/3dnow.c @@ -1,8 +1,8 @@ -/* $Id: 3dnow.c,v 1.5 2000/06/27 22:10:01 brianp Exp $ */ +/* $Id: 3dnow.c,v 1.6 2000/09/15 15:54:25 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.3 + * Version: 3.5 * * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. * @@ -144,22 +144,22 @@ extern void _ASMAPI gl_v16_3dnow_general_xform( GLfloat *first_vert, GLuint src_stride, GLuint count ); -void gl_init_3dnow_asm_transforms (void) -{ - DECLARE_XFORM_GROUP( _3dnow, 1, raw ) - DECLARE_XFORM_GROUP( _3dnow, 2, raw ) - DECLARE_XFORM_GROUP( _3dnow, 3, raw ) - DECLARE_XFORM_GROUP( _3dnow, 4, raw ) - DECLARE_XFORM_GROUP( _3dnow, 1, masked ) - DECLARE_XFORM_GROUP( _3dnow, 2, masked ) - DECLARE_XFORM_GROUP( _3dnow, 3, masked ) - DECLARE_XFORM_GROUP( _3dnow, 4, masked ) +DECLARE_XFORM_GROUP( _3dnow, 1, raw ) +DECLARE_XFORM_GROUP( _3dnow, 2, raw ) +DECLARE_XFORM_GROUP( _3dnow, 3, raw ) +DECLARE_XFORM_GROUP( _3dnow, 4, raw ) + +DECLARE_XFORM_GROUP( _3dnow, 1, masked ) +DECLARE_XFORM_GROUP( _3dnow, 2, masked ) +DECLARE_XFORM_GROUP( _3dnow, 3, masked ) +DECLARE_XFORM_GROUP( _3dnow, 4, masked ) - DECLARE_NORM_GROUP( _3dnow, raw ) -/* DECLARE_NORM_GROUP( _3dnow, masked ) -*/ +DECLARE_NORM_GROUP( _3dnow, raw ) +/*DECLARE_NORM_GROUP( _3dnow, masked )*/ +void gl_init_3dnow_asm_transforms (void) +{ ASSIGN_XFORM_GROUP( _3dnow, 0, 1, raw ) ASSIGN_XFORM_GROUP( _3dnow, 0, 2, raw ) ASSIGN_XFORM_GROUP( _3dnow, 0, 3, raw ) @@ -171,8 +171,7 @@ void gl_init_3dnow_asm_transforms (void) ASSIGN_XFORM_GROUP( _3dnow, CULL_MASK_ACTIVE, 4, masked ) ASSIGN_NORM_GROUP( _3dnow, 0, raw ) -/* ASSIGN_NORM_GROUP( _3dnow, CULL_MASK_ACTIVE, masked ) -*/ +/* ASSIGN_NORM_GROUP( _3dnow, CULL_MASK_ACTIVE, masked )*/ #ifdef DEBUG gl_test_all_transform_functions("3Dnow!"); -- 2.30.2