newlib-cygwin/newlib/libc/sys
Alan Somers 27dfb5f33f Correctly measure system load averages > 1024
The old fixed-point arithmetic used for calculating load averages had an
overflow at 1024.  So on systems with extremely high load, the observed
load average would actually fall back to 0 and shoot up again, creating
a kind of sawtooth graph.

Fix this by using 64-bit math internally, while still reporting the load
average to userspace as a 32-bit number.

Sponsored by:	Axcient
Reviewed by:	imp
Differential Revision: https://reviews.freebsd.org/D35134
2022-07-11 13:19:29 +02:00
..
a29khif newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
amdgcn newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
arm newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
d10v newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
epiphany newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
h8300hms newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
h8500hms newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
m88kbug newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
mmixware newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
netware newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
or1k newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
rdos newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
rtems Correctly measure system load averages > 1024 2022-07-11 13:19:29 +02:00
sh newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
sysmec newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
sysnec810 newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
sysnecv850 Avoid using common symbols in v850 libgloss 2022-03-19 20:01:33 -04:00
sysvi386 newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
sysvnecv70 newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
tic80 newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
tirtos newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
w65 newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
z8ksim newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
Makefile.inc newlib: drop phoenix support 2022-03-28 23:17:06 -04:00