Started from buttom go to the sky
This commit is contained in:
parent
96215449bd
commit
f811e55dea
4781 changed files with 10121 additions and 1743 deletions
21
stdme/include/me/num/u16.h
Normal file
21
stdme/include/me/num/u16.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* u16.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/11 14:10:03 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/11 14:16:58 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef U16_H
|
||||
# define U16_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
t_u16 u16_rotate_left(t_u16 n, t_usize by);
|
||||
t_u16 u16_rotate_right(t_u16 n, t_usize by);
|
||||
|
||||
#endif
|
||||
21
stdme/include/me/num/u32.h
Normal file
21
stdme/include/me/num/u32.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* u32.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/11 14:10:03 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/11 14:17:08 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef U32_H
|
||||
# define U32_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
t_u32 u32_rotate_left(t_u32 n, t_usize by);
|
||||
t_u32 u32_rotate_right(t_u32 n, t_usize by);
|
||||
|
||||
#endif
|
||||
24
stdme/include/me/num/u64.h
Normal file
24
stdme/include/me/num/u64.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* u64.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/11 14:10:03 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/11 17:59:34 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef U64_H
|
||||
# define U64_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
t_u64 u64_rotate_left(t_u64 n, t_usize by);
|
||||
t_u64 u64_rotate_right(t_u64 n, t_usize by);
|
||||
|
||||
t_u64 u64_from_7bytes(t_u8 *bytes, t_usize start, t_usize len);
|
||||
t_u64 u64_from_bytes(t_u8 *bytes, t_usize len);
|
||||
|
||||
#endif
|
||||
21
stdme/include/me/num/u8.h
Normal file
21
stdme/include/me/num/u8.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* u8.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/11 14:10:03 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/11 14:17:24 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef U8_H
|
||||
# define U8_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
t_u8 u8_rotate_left(t_u8 n, t_usize by);
|
||||
t_u8 u8_rotate_right(t_u8 n, t_usize by);
|
||||
|
||||
#endif
|
||||
21
stdme/include/me/num/usize.h
Normal file
21
stdme/include/me/num/usize.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* usize.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/11 14:10:03 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/11 14:17:32 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef USIZE_H
|
||||
# define USIZE_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
t_usize usize_rotate_left(t_usize n, t_usize by);
|
||||
t_usize usize_rotate_right(t_usize n, t_usize by);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue