src/prefetch.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define alternative_input(oldinstr, newinstr, feature, input...)

Functions

static void prefetch (const void *x)


Define Documentation

#define alternative_input ( oldinstr,
newinstr,
feature,
input...   ) 

Value:

asm volatile ("661:\n\t" oldinstr "\n662:\n"                \
            ".section .altinstructions,\"a\"\n"           \
            "  .align 4\n"                        \
            "  .long 661b\n"            /* label */           \
            "  .long 663f\n"        /* new instruction */     \
            "  .byte %c0\n"             /* feature bit */     \
            "  .byte 662b-661b\n"       /* sourcelen */       \
            "  .byte 664f-663f\n"       /* replacementlen */      \
            ".previous\n"                     \
            ".section .altinstr_replacement,\"ax\"\n"         \
            "663:\n\t" newinstr "\n664:\n"   /* replacement */    \
            ".previous" :: "i" (feature), ##input)

Definition at line 4 of file prefetch.h.

Referenced by prefetch().


Function Documentation

static void prefetch ( const void *  x  )  [inline, static]

Definition at line 19 of file prefetch.h.

References alternative_input.

00020 {
00021     alternative_input(ASM_NOP4,
00022             "prefetchnta (%1)",
00023             X86_FEATURE_XMM,
00024             "r" (x));
00025 }


Generated on Mon May 28 04:25:47 2007 for BattletechMUX by  doxygen 1.4.7