Created
June 20, 2025 05:51
-
-
Save xv/b1f4247c49eee5fcb87b55ed18637a96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MIN(A, B) ((A) < (B) ? (A) : (B)) | |
#define MAX(A, B) ((A) > (B) ? (A) : (B)) | |
#define CLAMP(N, LO, HI) (MIN(MAX((LO), (N)), (HI))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment