diff --git a/math/ft_max.c b/math/ft_max.c new file mode 100644 index 0000000..6d9c1d7 --- /dev/null +++ b/math/ft_max.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_max.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rparodi +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2025/09/17 16:23:22 by rparodi #+# #+# */ +/* Updated: 2025/09/17 16:24:17 by rparodi ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +uint32_t ft_max(uint32_t x, uint32_t y) +{ + return (x ^ ((x ^ y) & -(x < y))); +}