18 lines
993 B
C
18 lines
993 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_max.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/09/17 16:23:22 by rparodi #+# #+# */
|
|
/* Updated: 2025/09/17 16:24:17 by rparodi ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdint.h>
|
|
|
|
uint32_t ft_max(uint32_t x, uint32_t y)
|
|
{
|
|
return (x ^ ((x ^ y) & -(x < y)));
|
|
}
|