aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/drivers/dri/common/memops.h
blob: 9cd1d8ec3fa95d7941489180e0f04614574d0109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef DRIMEMSETIO_H
#define DRIMEMSETIO_H
/*
* memset an area in I/O space
* We need to be careful about this on some archs
*/
static INLINE void drimemsetio(void* address, int c, int size)
{
#if defined(__powerpc__) || defined(__ia64__)
     int i;
     for(i=0;i<size;i++)
        *((char *)address + i)=c;
#else
     memset(address,c,size);
#endif
}
#endif