MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / align_with_offset

Function align_with_offset

tests/test-quantize-perf.cpp:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static void * align_with_offset(void * ptr, int offset) {
75 size_t dummy_size = MAX_ALIGNMENT * 4;
76 return (char *) std::align(MAX_ALIGNMENT, MAX_ALIGNMENT, ptr, dummy_size) + offset;
77}
78
79static void benchmark_function(size_t size, size_t q_size, int64_t iterations, const std::function<float(void)> & func) {
80 int64_t min_time_us = INT64_MAX;

Callers 1

mainFunction · 0.70

Calls 1

alignEnum · 0.85

Tested by

no test coverage detected