Skip to content
Snippets Groups Projects
Commit 3fc79ca2 authored by hjl's avatar hjl
Browse files

2004-04-06 H.J. Lu <hongjiu.lu@intel.com>

	* include/private/gcconfig.h (PREFETCH): Use __builtin_prefetch
	for gcc >= 3.0.
	(PREFETCH_FOR_WRITE): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80459 138bc75d-0d04-0410-961f-82ee72b054a4
parent d17281c9
No related branches found
No related tags found
No related merge requests found
2004-04-06 H.J. Lu <hongjiu.lu@intel.com>
* include/private/gcconfig.h (PREFETCH): Use __builtin_prefetch
for gcc >= 3.0.
(PREFETCH_FOR_WRITE): Likewise.
2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
* configure.ac: Bump AC_PREREQ to 2.59.
......
......@@ -1801,10 +1801,10 @@
extern int etext[];
# define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff))
# endif
# define PREFETCH(x) \
__asm__ __volatile__ (" prefetch %0": : "m"(*(char *)(x)))
# define PREFETCH_FOR_WRITE(x) \
__asm__ __volatile__ (" prefetchw %0": : "m"(*(char *)(x)))
# if defined(__GNUC__) && __GNUC__ >= 3
# define PREFETCH(x) __builtin_prefetch ((x), 0, 0)
# define PREFETCH_FOR_WRITE(x) __builtin_prefetch ((x), 1)
# endif
# endif
# endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment