> -----Original Message----- > From: fio-owner@xxxxxxxxxxxxxxx [mailto:fio-owner@xxxxxxxxxxxxxxx] On > Behalf Of kusumi.tomohiro@xxxxxxxxx > Sent: Tuesday, April 4, 2017 3:22 PM > Subject: [PATCH 8/8] Fix num2str() output when modulo != -1U ... > @@ -62,6 +62,9 @@ char *num2str(uint64_t num, int maxlen, int base, int > pow2, int units) > break; ... > + sprintf(fmt, "%%.%df", (int)(maxlen - strlen(tmp) - 1)); > + sprintf(tmp, fmt, (double)modulo / (double)thousand[!!pow2]); I suspect one of the goals of that function was to restrict itself to integer math and avoid invoking the floating point unit (which might not even exist on some CPUs). -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html