Commit d6975de8 authored by Mikael Ronstrom's avatar Mikael Ronstrom

Compile fixes, sun_prefetch.h only available on Sun Studio

parent c2ad3cad
......@@ -9,7 +9,7 @@ Created 1/20/1994 Heikki Tuuri
#ifndef univ_i
#define univ_i
#if ( defined(sun) || defined(__sun) )
#ifdef __SUNPRO_C
# include <sun_prefetch.h>
#endif
......@@ -278,7 +278,7 @@ it is read. */
/* Minimize cache-miss latency by moving data at addr into a cache before
it is read or written. */
# define UNIV_PREFETCH_RW(addr) __builtin_prefetch(addr, 1, 3)
#elif ( defined(sun) || defined(__sun) )
#elif defined(__SUNPRO_C)
# define UNIV_EXPECT(expr,value) (expr)
# define UNIV_LIKELY_NULL(expr) (expr)
# define UNIV_PREFETCH_R(addr) sparc_prefetch_read_many(addr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment