MCPcopy Create free account
hub / github.com/LUX-Core/lux / integerify

Function integerify

src/crypto/scrypt.cpp:301–307  ·  view source on GitHub ↗

* integerify(B, r): * Return the result of parsing B_{2r-1} as a little-endian integer. */

Source from the content-addressed store, hash-verified

299 * Return the result of parsing B_{2r-1} as a little-endian integer.
300 */
301static uint64_t
302integerify(const void * B, size_t r)
303{
304 const uint32_t * X = (const uint32_t*)((uintptr_t)(B) + (2 * r - 1) * 64);
305
306 return (((uint64_t)(X[1]) << 32) + X[0]);
307}
308
309void SMix(uint8_t *B, unsigned int r, unsigned int N, void* _V, void* XY)
310{

Callers 1

SMixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected