Host introspection: Difference between revisions

To find the word size, replaced the computation using log2 by a call to "countSetBits" from module "bitops".
(To find the word size, replaced the computation using log2 by a call to "countSetBits" from module "bitops".)
Line 687:
 
=={{header|Nim}}==
<lang nim>import mathbitops
echo cpuEndian
echo roundcountSetBits(log2(float(int.high-1))) + 1</lang>
 
=={{header|Objective-C}}==
Anonymous user