From 07561c6b32d55128222283a7450c65c95d21df59 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 5 Mar 2005 06:38:59 +0000 Subject: Fixing memset on ia64 & other archs From: Stephane Marchesin --- src/mesa/drivers/dri/common/memops.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/mesa/drivers/dri/common/memops.h (limited to 'src/mesa/drivers/dri/common/memops.h') diff --git a/src/mesa/drivers/dri/common/memops.h b/src/mesa/drivers/dri/common/memops.h new file mode 100644 index 0000000000..4952d788e8 --- /dev/null +++ b/src/mesa/drivers/dri/common/memops.h @@ -0,0 +1,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