Commit 8a2e76e6 authored by MySQL Build Team's avatar MySQL Build Team

Use sun_prefetch_read_many() and friends, instead of sparc_prefetch_read_many(),

etc.  The sparc_* are defined only for sparc, but the sun_* are generic for x86
and sparc (and are defined empty for any other platform).
parent 61baf8bb
...@@ -291,8 +291,8 @@ it is read or written. */ ...@@ -291,8 +291,8 @@ it is read or written. */
#elif defined(__SUNPRO_C) #elif defined(__SUNPRO_C)
# define UNIV_EXPECT(expr,value) (expr) # define UNIV_EXPECT(expr,value) (expr)
# define UNIV_LIKELY_NULL(expr) (expr) # define UNIV_LIKELY_NULL(expr) (expr)
# define UNIV_PREFETCH_R(addr) sparc_prefetch_read_many(addr) # define UNIV_PREFETCH_R(addr) sun_prefetch_read_many(addr)
# define UNIV_PREFETCH_RW(addr) sparc_prefetch_write_many(addr) # define UNIV_PREFETCH_RW(addr) sun_prefetch_write_many(addr)
#else #else
/* Dummy versions of the macros */ /* Dummy versions of the macros */
# define UNIV_EXPECT(expr,value) (expr) # define UNIV_EXPECT(expr,value) (expr)
......
...@@ -43,7 +43,7 @@ inline void prefetch(void* p) ...@@ -43,7 +43,7 @@ inline void prefetch(void* p)
__asm(" ldl r31,0(a0);", p); __asm(" ldl r31,0(a0);", p);
#endif /* NDB_ALPHA */ #endif /* NDB_ALPHA */
#ifdef NDB_FORTE6 #ifdef NDB_FORTE6
sparc_prefetch_read_once(p); sun_prefetch_read_once(p);
#else #else
(void)p; (void)p;
#endif #endif
...@@ -55,7 +55,7 @@ inline void writehint(void* p) ...@@ -55,7 +55,7 @@ inline void writehint(void* p)
__asm(" wh64 (a0);", p); __asm(" wh64 (a0);", p);
#endif /* NDB_ALPHA */ #endif /* NDB_ALPHA */
#ifdef NDB_FORTE6 #ifdef NDB_FORTE6
sparc_prefetch_write_once(p); sun_prefetch_write_once(p);
#else #else
(void)p; (void)p;
#endif #endif
......
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