commonlib/clamp.h: Add more clamping functions
commitf7571c43f8d0e53cc1fb18757206b1024f9ac88b
authorAngel Pons <th3fanbus@gmail.com>
Sat, 7 May 2022 18:36:10 +0000 (7 20:36 +0200)
committerFelix Held <felix-coreboot@felixheld.de>
Mon, 12 Dec 2022 13:38:11 +0000 (12 13:38 +0000)
treeb87e0965362bc633fab5c03a904551a5e92fefe3
parent58d2947855da6986eaf42b08db5c693709f50eac
commonlib/clamp.h: Add more clamping functions

Add more clamping functions that work with different types.

Change-Id: I14cf335d5a54f769f8fd9184450957e876affd6b
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64175
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/commonlib/bsd/include/commonlib/bsd/clamp.h