mesa: Change "BRIAN PAUL" to "THE AUTHORS" in license text.
[mesa.git] / src / mesa / math / m_copy_tmp.h
index b328537fafa1d9538c72363ca96a37ae681c8f5a..3c4e661e8336e7d8d4122ae118f772ce55be8b82 100644 (file)
@@ -1,10 +1,9 @@
-/* $Id: m_copy_tmp.h,v 1.1 2000/11/16 21:05:41 keithw Exp $ */
 
 /*
  * Mesa 3-D graphics library
- * Version:  3.1
+ * Version:  3.5
  *
- * Copyright (C) 1999  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -19,7 +18,7 @@
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
- * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
 
 #define COPY_FUNC( BITS )                                              \
-static void TAG2(copy, BITS)(GLvector4f *to, const GLvector4f *f,      \
-                            const GLubyte mask[] )                     \
+static void TAG2(copy, BITS)( GLvector4f *to, const GLvector4f *f )    \
 {                                                                      \
    GLfloat (*t)[4] = (GLfloat (*)[4])to->start;                                \
    GLfloat *from = f->start;                                           \
    GLuint stride = f->stride;                                          \
-   GLuint count = f->count;                                            \
+   GLuint count = to->count;                                           \
    GLuint i;                                                           \
-   (void) mask;                                                                \
                                                                        \
    if (BITS)                                                           \
       STRIDE_LOOP {                                                    \
-        CULL_CHECK {                                                   \
-           if (BITS&1) t[i][0] = from[0];                              \
-           if (BITS&2) t[i][1] = from[1];                              \
-           if (BITS&4) t[i][2] = from[2];                              \
-           if (BITS&8) t[i][3] = from[3];                              \
-        }                                                              \
+        if (BITS&1) t[i][0] = from[0];                                 \
+        if (BITS&2) t[i][1] = from[1];                                 \
+        if (BITS&4) t[i][2] = from[2];                                 \
+        if (BITS&8) t[i][3] = from[3];                                 \
       }                                                                        \
 }
 
-
-
-/* static void TAG2(clean, BITS)(GLvector4f *to ) */
-/* { */
-/*    GLfloat (*t)[4] = to->data; */
-/*    GLuint i; */
-
-/*    if (BITS) */
-/*       for (i = 0 ; i < VB_SIZE ; i++) { */
-/*          if (BITS&1) t[i][0] = 0; */
-/*      if (BITS&2) t[i][1] = 0; */
-/*      if (BITS&4) t[i][2] = 0; */
-/*      if (BITS&8) t[i][3] = 1; */
-/*       } */
-/*    to->flags &= ~BITS; */
-/* } */
-
-
 /* We got them all here:
  */
 COPY_FUNC( 0x0 )               /* noop */
@@ -88,39 +65,22 @@ COPY_FUNC( 0xd )
 COPY_FUNC( 0xe )
 COPY_FUNC( 0xf )
 
-static void TAG2(init_copy, 0 ) ( void )
+static void TAG2(init_copy, 0)( void )
 {
-   gl_copy_tab[IDX][0x0] = TAG2(copy, 0x0);
-   gl_copy_tab[IDX][0x1] = TAG2(copy, 0x1);
-   gl_copy_tab[IDX][0x2] = TAG2(copy, 0x2);
-   gl_copy_tab[IDX][0x3] = TAG2(copy, 0x3);
-   gl_copy_tab[IDX][0x4] = TAG2(copy, 0x4);
-   gl_copy_tab[IDX][0x5] = TAG2(copy, 0x5);
-   gl_copy_tab[IDX][0x6] = TAG2(copy, 0x6);
-   gl_copy_tab[IDX][0x7] = TAG2(copy, 0x7);
-   gl_copy_tab[IDX][0x8] = TAG2(copy, 0x8);
-   gl_copy_tab[IDX][0x9] = TAG2(copy, 0x9);
-   gl_copy_tab[IDX][0xa] = TAG2(copy, 0xa);
-   gl_copy_tab[IDX][0xb] = TAG2(copy, 0xb);
-   gl_copy_tab[IDX][0xc] = TAG2(copy, 0xc);
-   gl_copy_tab[IDX][0xd] = TAG2(copy, 0xd);
-   gl_copy_tab[IDX][0xe] = TAG2(copy, 0xe);
-   gl_copy_tab[IDX][0xf] = TAG2(copy, 0xf);
-
-/*    gl_clean_tab[IDX][0x0] = TAG2(clean, 0x0); */
-/*    gl_clean_tab[IDX][0x1] = TAG2(clean, 0x1); */
-/*    gl_clean_tab[IDX][0x2] = TAG2(clean, 0x2); */
-/*    gl_clean_tab[IDX][0x3] = TAG2(clean, 0x3); */
-/*    gl_clean_tab[IDX][0x4] = TAG2(clean, 0x4); */
-/*    gl_clean_tab[IDX][0x5] = TAG2(clean, 0x5); */
-/*    gl_clean_tab[IDX][0x6] = TAG2(clean, 0x6); */
-/*    gl_clean_tab[IDX][0x7] = TAG2(clean, 0x7); */
-/*    gl_clean_tab[IDX][0x8] = TAG2(clean, 0x8); */
-/*    gl_clean_tab[IDX][0x9] = TAG2(clean, 0x9); */
-/*    gl_clean_tab[IDX][0xa] = TAG2(clean, 0xa); */
-/*    gl_clean_tab[IDX][0xb] = TAG2(clean, 0xb); */
-/*    gl_clean_tab[IDX][0xc] = TAG2(clean, 0xc); */
-/*    gl_clean_tab[IDX][0xd] = TAG2(clean, 0xd); */
-/*    gl_clean_tab[IDX][0xe] = TAG2(clean, 0xe); */
-/*    gl_clean_tab[IDX][0xf] = TAG2(clean, 0xf); */
+   _mesa_copy_tab[0x0] = TAG2(copy, 0x0);
+   _mesa_copy_tab[0x1] = TAG2(copy, 0x1);
+   _mesa_copy_tab[0x2] = TAG2(copy, 0x2);
+   _mesa_copy_tab[0x3] = TAG2(copy, 0x3);
+   _mesa_copy_tab[0x4] = TAG2(copy, 0x4);
+   _mesa_copy_tab[0x5] = TAG2(copy, 0x5);
+   _mesa_copy_tab[0x6] = TAG2(copy, 0x6);
+   _mesa_copy_tab[0x7] = TAG2(copy, 0x7);
+   _mesa_copy_tab[0x8] = TAG2(copy, 0x8);
+   _mesa_copy_tab[0x9] = TAG2(copy, 0x9);
+   _mesa_copy_tab[0xa] = TAG2(copy, 0xa);
+   _mesa_copy_tab[0xb] = TAG2(copy, 0xb);
+   _mesa_copy_tab[0xc] = TAG2(copy, 0xc);
+   _mesa_copy_tab[0xd] = TAG2(copy, 0xd);
+   _mesa_copy_tab[0xe] = TAG2(copy, 0xe);
+   _mesa_copy_tab[0xf] = TAG2(copy, 0xf);
 }