MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / gforToggle

Function gforToggle

src/api/cpp/gfor.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22void gforSet(bool val) { gforStatus = val; }
23
24bool gforToggle() {
25 bool status = gforGet();
26 status ^= 1U;
27 gforSet(status);
28 return status;
29}
30
31array batchFunc(const array &lhs, const array &rhs, batchFunc_t func) {
32 if (gforGet()) {

Callers

nothing calls this directly

Calls 2

gforGetFunction · 0.85
gforSetFunction · 0.85

Tested by

no test coverage detected