Skip to documentation
SLOP

tiny.simd.flushCacheline

Reference tiny.simd flushCacheline

Defined in cache.

Called byCallsNo direct callstest sourcelib.simd.src.cachetest: Highway cache controls preserve...cacheflushCacheline
Static calls · unresolved targets: 2 · external targets: 0.

Source

Source: lib/simd/src/cache.zig:36

zig
pub inline fn flushCacheline(pointer: *const anyopaque) void {    switch (comptime builtin.target.cpu.arch) {        .x86_64 => asm volatile ("clflush (%%rax)"            :            : [address] "{rax}" (pointer),            : .{ .memory = true }),        .x86 => asm volatile ("clflush (%%eax)"            :            : [address] "{eax}" (pointer),            : .{ .memory = true }),        else => {},    }}

Source: lib/simd/src/root.zig:263

zig
pub const flushCacheline = cache.flushCacheline;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433