Jump to content

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.