fix norm and set chunk sizes

This commit is contained in:
2024-12-03 19:03:30 +01:00
parent 231b283e0d
commit 7dfa7eb049
10 changed files with 241 additions and 186 deletions

20
srcs/utils.c Normal file
View File

@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/03 13:20:54 by tomoron #+# #+# */
/* Updated: 2024/12/03 13:23:31 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
#include "includes/malloc.h"
size_t align(size_t nb, size_t align_nb)
{
if (nb % align_nb)
nb = nb + (align_nb - (nb % align_nb));
return (nb);
}