OpenGrok
Cross Reference: strpct.c
xref
: /
src
/
lib
/
libutil
/
strpct.c
Home
|
History
|
Annotate
|
Download
|
only in
libutil
History log of
/src/lib/libutil/strpct.c
Revision
Date
Author
Comments
1.6
13-May-2025
rillig
strpct: inline simple snprintf calls
For fractions in the typical range from 0 inclusively to 1 exclusively,
snprintf is not called at all. For calling strpct 1 million times in
t_strpct, the run time on my amd64 machine goes from 28 seconds down to
2 seconds.
1.5
03-May-2025
rillig
strpct: fix rounding errors and loss of accuracy
1.4
02-May-2025
rillig
strspct: fix integer overflow in -ftrapv mode
1.3
07-Jan-2012
christos
- add strspct
- be explicit about string not being NUL terminated if bufsiz == 0
1.2
02-Sep-2011
christos
branches: 1.2.2;
- use the correct buffer size
- remove obsolete comment
1.1
28-Aug-2011
christos
add strpct, requested by joerg
1.2.2.1
17-Apr-2012
yamt
sync with head
Indexes created Sun Oct 12 22:09:51 GMT 2025