library: trade 'float' type for a 'double', <pids> api
authorJim Warner <james.warner@comcast.net>
Sun, 27 Feb 2022 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Mon, 28 Feb 2022 09:21:00 +0000 (20:21 +1100)
commitc89421e83a2af26874fb3653b7d2942436633154
treeae0183d5226b81b6721f272990423a895961fa38
parent831bd8cf29ce5056ba59c477812971c648f66d32
library: trade 'float' type for a 'double', <pids> api

While we really do not need the extra precision, we'll
trade that recently introduced float type for a double
for efficiency on a 64 bit platform. Additionally, the
UTILIZATION algorithm was tweaked producing less code.

The net result is four fewer machine instructions with
a reduction of 14 total bytes in that function's size.

Reference(s):
. introduced 'real' type & 'utilization' item
commit c69104b2b835176f9801dfd1a1d893579879a5b6

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.c
proc/pids.h