Add shared min and max functions for int

This commit is contained in:
Camilla Löwy
2022-03-14 16:01:34 +01:00
parent 9cc252a406
commit 3ee5031fd7
6 changed files with 26 additions and 26 deletions
+10
View File
@@ -179,6 +179,16 @@ char* _glfw_strdup(const char* source)
return result;
}
int _glfw_min(int a, int b)
{
return a < b ? a : b;
}
int _glfw_max(int a, int b)
{
return a > b ? a : b;
}
float _glfw_fminf(float a, float b)
{
if (a != a)