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

Function fxBigInt64Setter

xs/sources/xsDataView.c:2867–2877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2865}
2866
2867void fxBigInt64Setter(txMachine* the, txSlot* data, txInteger offset, txSlot* slot, int endian)
2868{
2869 txS8 value = (txS8)fxToBigInt64(the, slot);
2870#ifdef mxMisalignedSettersCrash
2871 value = EXPORT(S64);
2872 c_memcpy(data->value.arrayBuffer.address + offset, &value, sizeof(txS8));
2873#else
2874 *((txS8*)(data->value.arrayBuffer.address + offset)) = EXPORT(S64);
2875#endif
2876 mxMeterOne();
2877}
2878
2879int fxBigUint64Compare(const void* p, const void* q)
2880{

Callers

nothing calls this directly

Calls 1

fxToBigInt64Function · 0.85

Tested by

no test coverage detected