core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

m_copy_tmp.h File Reference


Defines

#define COPY_FUNC(BITS)

Functions

 COPY_FUNC (0x0) static void TAG2(init_copy


Define Documentation

#define COPY_FUNC ( BITS   ) 

Value:

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 = to->count;                                            \
   GLuint i;                                                            \
                                                                        \
   if (BITS)                                                            \
      STRIDE_LOOP {                                                     \
         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];                                 \
      }                                                                 \
}


Function Documentation

COPY_FUNC ( 0x0   ) 


Generated on Sun Sep 27 06:47:50 2009 for Mesa math module by  doxygen 1.5.4