Commit 4a6e1bea authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

check functions for AccessSpreader

Summary: Add some functions for looking at the code generated by `AccessSpreader<>::current()` and `AccessSpreader<>::cachedCurrent()`.

Differential Revision: D27747508

fbshipit-source-id: 0bc44938e810ec76ead50b6d4c1ade4aec9f8282
parent b310ff2e
......@@ -23,9 +23,20 @@
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <folly/lang/Keep.h>
using namespace folly;
extern "C" FOLLY_KEEP size_t
check_access_spreader_atomic_current(size_t numStripes) {
return AccessSpreader<>::current(numStripes);
}
extern "C" FOLLY_KEEP size_t
check_access_spreader_atomic_cached_current(size_t numStripes) {
return AccessSpreader<>::cachedCurrent(numStripes);
}
#define DECLARE_SPREADER_TAG(tag, locality, func) \
namespace { \
template <typename dummy> \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment