Skip to content

Add a fully implementation of endian.h#2

Open
thisisaname1928 wants to merge 14 commits into
BoredOS:mainfrom
thisisaname1928:main
Open

Add a fully implementation of endian.h#2
thisisaname1928 wants to merge 14 commits into
BoredOS:mainfrom
thisisaname1928:main

Conversation

@thisisaname1928
Copy link
Copy Markdown
Contributor

@thisisaname1928 thisisaname1928 commented Jun 6, 2026

Add a fully implementation of endian.h

Overview

Functions & Macros

#define LITTLE_ENDIAN
#define BIG_ENDIAN 
#define __LIBC_BYTE_ORDER 

uint16_t  be16toh(uint16_t);
uint32_t  be32toh(uint32_t);
uint64_t  be64toh(uint64_t);
uint16_t  htobe16(uint16_t);
uint32_t  htobe32(uint32_t);
uint64_t  htobe64(uint64_t);
uint16_t  htole16(uint16_t);
uint32_t  htole32(uint32_t);
uint64_t  htole64(uint64_t);
uint16_t  le16toh(uint16_t);
uint32_t  le32toh(uint32_t);
uint64_t  le64toh(uint64_t);

@thisisaname1928 thisisaname1928 changed the title Add a fully implement of endian.h Add a fully implementation of endian.h Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant