xemu/bsd-user
Warner Losh 0867507857 bsd-user: various helper routines for sysctl
cap_memory - Caps the memory to just below MAXINT
scale_to_guest_pages - Account for difference in host / guest page size
h2g_long_sat - converts a int64_t to a int32_t, saturating at max / min values
h2g_ulong_sat - converts a uint64_t to a uint32_t, saturating at max value

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2023-03-01 11:09:18 -07:00
..
2023-02-08 07:16:23 +01:00
2023-02-08 07:16:23 +01:00
2023-02-08 07:16:23 +01:00
2023-02-08 07:16:23 +01:00
2023-02-08 07:16:23 +01:00
2023-02-08 07:16:23 +01:00