Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Nov 6, 2024
1 parent 9f144d9 commit b5a19c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ uint32_t my_NTOHL(const uint32_t x);
uint16_t my_NTOHS(const uint16_t x);
uint32_t my_HTONL(const uint32_t x);
uint16_t my_HTONS(const uint16_t x);

void socket_set_nodelay(const int fd);

#define my_HTONLL(x) ((1==my_HTONL(1)) ? (x) : (((uint64_t)my_HTONL((x) & 0xFFFFFFFFUL)) << 32) | my_HTONL((uint32_t)((x) >> 32)))
#define my_NTOHLL(x) ((1==my_NTOHL(1)) ? (x) : (((uint64_t)my_NTOHL((x) & 0xFFFFFFFFUL)) << 32) | my_NTOHL((uint32_t)((x) >> 32)))

void socket_set_nodelay(const int fd);

extern uint64_t running_since;

void my_yield();

0 comments on commit b5a19c4

Please sign in to comment.