RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
cpu-cache-line-size.cpp File Reference
#include <cerrno>
#include <cstdint>
#include <iostream>
#include <optional>
Include dependency graph for cpu-cache-line-size.cpp:

Go to the source code of this file.

Functions

static std::optional< int64_t > get_cachelinesize_from_sysconf ()
static std::optional< int64_t > get_cachelinesize_from_getauxval ()
static std::optional< int64_t > get_cachelinesize_from_sysctlbyname ()
static std::optional< int64_t > get_cachelinesize_from_GetLogicalProcessorInformation ()
int main ()

Function Documentation

◆ get_cachelinesize_from_getauxval()

std::optional< int64_t > get_cachelinesize_from_getauxval ( )
static

Definition at line 37 of file cpu-cache-line-size.cpp.

Referenced by main().

Here is the caller graph for this function:

◆ get_cachelinesize_from_GetLogicalProcessorInformation()

std::optional< int64_t > get_cachelinesize_from_GetLogicalProcessorInformation ( )
static

Definition at line 83 of file cpu-cache-line-size.cpp.

Referenced by main().

Here is the caller graph for this function:

◆ get_cachelinesize_from_sysconf()

std::optional< int64_t > get_cachelinesize_from_sysconf ( )
static

Definition at line 22 of file cpu-cache-line-size.cpp.

Referenced by main().

Here is the caller graph for this function:

◆ get_cachelinesize_from_sysctlbyname()

std::optional< int64_t > get_cachelinesize_from_sysctlbyname ( )
static

Definition at line 55 of file cpu-cache-line-size.cpp.

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 88 of file cpu-cache-line-size.cpp.

References get_cachelinesize_from_getauxval(), get_cachelinesize_from_GetLogicalProcessorInformation(), get_cachelinesize_from_sysconf(), and get_cachelinesize_from_sysctlbyname().

Here is the call graph for this function: