This struct provides a namespace for a suite of functions that give performance hints to the compiler or hardware.

Synopsis

Declared in <bsls_performancehint.h>

struct PerformanceHint;

Static Member Functions

Name

Description

lowFrequency

Hint that the enclosing branch executes infrequently.

prefetchForReading

Prefetch one cache line of data at address for reading.

prefetchForWriting

Prefetch one cache line of data at address for writing.

rarelyCalled

Hint that the enclosing branch is rarely taken.

Created with MrDocs