EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

PreFetchCacheLine macro

Indicates to the processor that a cache line will be needed in the near future.

Syntax


void PreFetchCacheLine(
  int Level,
  VOID CONST *Address
);

Parameters

Level

How often the cache line will be needed. This parameter can be one of the following values.

ValueMeaning
PF_TEMPORAL_LEVEL_1

The cache line should be loaded into all caches and is likely to be accessed multiple times.

PF_NON_TEMPORAL_LEVEL_ALL

The cache line is not likely to be needed again after the first reference.

 

Address

The address of the cache line to be loaded. This address is not required to be on a cache line boundary.

Return value

This macro does not return a value.

Remarks

This macro can be called on all processor platforms where Windows is supported, but it has no effect on some platforms. The definition varies from platform to platform. The following are some definitions of this macro in Winnt.h:

#define PreFetchCacheLine(l, a)  _mm_prefetch((CHAR CONST *) a, l)

#define PreFetchCacheLine(l, a)

#define PreFetchCacheLine  __lfetch

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winnt.h (include Windows.h)

 

 

コミュニティの追加

追加
表示:
© 2014 Microsoft