updated code comments, based on @terrelln review
This commit is contained in:
parent
d195eec97e
commit
5512400677
@ -89,7 +89,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* prefetch
|
/* prefetch
|
||||||
* can be disabled, by declaring NO_PREFETCH macro */
|
* can be disabled, by declaring NO_PREFETCH macro
|
||||||
|
* All prefetch invocations use a single default locality 2,
|
||||||
|
* generating instruction prefetcht1,
|
||||||
|
* which, according to Intel, means "load data into L2 cache".
|
||||||
|
* This is a good enough "middle ground" for the time being,
|
||||||
|
* though in theory, it would be better to specialize locality depending on data being prefetched.
|
||||||
|
* Tests could not determine any sensible difference based on locality value. */
|
||||||
#if defined(NO_PREFETCH)
|
#if defined(NO_PREFETCH)
|
||||||
# define PREFETCH(ptr) (void)(ptr) /* disabled */
|
# define PREFETCH(ptr) (void)(ptr) /* disabled */
|
||||||
#else
|
#else
|
||||||
|
@ -56,7 +56,8 @@
|
|||||||
* Dependencies
|
* Dependencies
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
#include <string.h> /* memcpy, memmove, memset */
|
#include <string.h> /* memcpy, memmove, memset */
|
||||||
#include "cpu.h" /* prefetch */
|
#include "compiler.h" /* prefetch */
|
||||||
|
#include "cpu.h" /* bmi2 */
|
||||||
#include "mem.h" /* low level memory routines */
|
#include "mem.h" /* low level memory routines */
|
||||||
#define FSE_STATIC_LINKING_ONLY
|
#define FSE_STATIC_LINKING_ONLY
|
||||||
#include "fse.h"
|
#include "fse.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user