MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fx_Atomics_compareExchange

Function fx_Atomics_compareExchange

xs/sources/xsAtomics.c:473–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473void fx_Atomics_compareExchange(txMachine* the)
474{
475 mxAtomicsDeclarations(0, 0, 1);
476 fxPushAtomicsValue(the, 2, dispatch->value.typedArray.dispatch->constructorID);
477 fxPushAtomicsValue(the, 3, dispatch->value.typedArray.dispatch->constructorID);
478 (*dispatch->value.typedArray.atomics->compareExchange)(the, host, offset, the->stack, 0);
479 mxPullSlot(mxResult);
480 mxPop();
481}
482
483void fx_Atomics_exchange(txMachine* the)
484{

Callers

nothing calls this directly

Calls 1

fxPushAtomicsValueFunction · 0.85

Tested by

no test coverage detected