MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / get_core_index

Function get_core_index

g2all/700/lapse.js:406–414  ·  view source on GitHub ↗
(mask)

Source from the content-addressed store, hash-verified

404}
405
406function get_core_index(mask) {
407 let num = mem.read32(mask.addr);
408 let position = 0;
409 while (num > 0) {
410 num = num >>> 1;
411 position += 1;
412 }
413 return position - 1;
414}
415
416function get_current_core() {
417 const mask = new Buffer(sizeof_cpuset_t_);

Callers 1

get_current_coreFunction · 0.85

Calls 1

read32Method · 0.45

Tested by

no test coverage detected