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 c69104b2b8

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner authored and Craig Small committed 2022-02-28 20:21:00 +11:00
1 parent 831bd8cf29
commit c89421e83a
2 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ struct pids_result {
unsigned long long ull_int;
char *str;
char **strv;
float real;
double real;
} result;
};