summaryrefslogtreecommitdiff
path: root/lib/libutil/fmt_scaled.c
AgeCommit message (Expand)Author
2021-06-20scan_scaled: fix rescaling for negative numbersTheo Buehler
2020-10-12make fixed-sized fixed-value mib[] arrays be constTheo de Raadt
2019-01-14Calling llabs(LLONG_MIN) is undefined behavior, llvm 7.0.1 does notAlexander Bluhm
2018-05-14constrain fractional part to [0-9] (less confusing to static analysis); ok ian@Damien Miller
2017-03-16Fix overly-conservative overflow checks on mulitplications and add checksDarren Tucker
2017-03-15Collapse underflow and overflow checks into a single block.Darren Tucker
2017-03-15Catch integer underflow in scan_scaled reported by Nicolas Iooss.Darren Tucker
2017-03-11fix signed integer overflow in scan_scaled. Found by Nicolas IoossDamien Miller
2013-11-29fairly simple unsigned char casts for ctypeTheo de Raadt
2012-11-12make scan_scaled set errno to EINVAL rather than ERANGE if it encountersAlexander Hall
2009-06-20use llabs instead of the home-grown version; and some comment changesMartynas Venckus
2007-03-20remove some bogus *p from charles longeauTed Unangst
2005-10-19library routines should not be checking for NULL pointers passed in,Theo de Raadt
2005-08-02scrape $Id$ tags.Marc Espie
2005-03-09Fix rounding of fractionless numbers. ok tom@ miod@Otto Moerbeek
2005-03-08Fix sizing of fraction. ok tom@ deraadt@Otto Moerbeek
2004-09-16fix 1099512676352 -> 2.0T; ok miod@Otto Moerbeek
2004-05-28knf; otto okTheo de Raadt
2003-12-27o Do not drop unit when printing -100Otto Moerbeek
2003-05-15New: fmt_scaled() and scan_scaled() convert to and from "human readable"Ian Darwin