프로그래밍을 하다보면 짜증나는 것 중에 하나가 바로 이넘의 Byte Order이다.
Intel CPU가 Little Endian 이다 보니 Big Endian 과 유사한 비트 스트림의 경우에는
순서를 죄다 뒤집어주어야 한다. (어셈블러로 그냥 이런 명령어 하나 좀 만들어 주지 -_-)
uint32_t htonl(uint32_t hostlong);
uint16_t htons(uint16_t hostshort);
uint32_t ntohl(uint32_t netlong);
uint16_t ntohs(uint16_t netshort);
The htonl() function converts the unsigned integer hostlong from host byte order to network byte order.
The htons() function converts the unsigned short integer hostshort from host byte order to network byte order.
The ntohl() function converts the unsigned integer netlong from network byte order to host byte order.
The ntohs() function converts the unsigned short integer netshort from network byte order to host byte order.
On the i80x86 the host byte order is Least Significant Byte first, whereas the network byte order, as used on the Internet, is Most Significant Byte first.
TV는 안보지만 뉴스는 보니까 -_-
아무튼 이런글의 댓글이야 뻔할뻔자인데
통칭 빠른생일 1,2월 생들은 12개월중 2개월 2/12 = 17%를 차지하는 아주 적지만은 않은 비율인데
왜 이걸 그리 걸고 넘어질까 라는 생각을 많이 하게 된다.
요즘에는 1월에서 12월까지 끊어서 이런 불편함은 없어져서 다행이지만
빠른생일 입장에서는 이거 참.. 정말 지랄 맞긴하다.
제일 싫었던건 학기 초에 월별로 생일 손들게 하는건데
그거 하고 나면 한학기 동안은 정말 어리네 소리 들어야 하니 스트레스 받고
그걸 극복하면 보통생일애들 보다 더 낫기도 하지만
극복하지 못하면 완전 빵셔틀로 전락하기도 하다보니 짜증이 날 수 밖에 -_-
머.. 그런 이유로 사회나와서 쓰는 스킬은
"형이라고 부를테니 그럼 쏘실건가요? 동생이 쏠수는 없자나요~" 스킬
아무튼 두고두고 형이라 불리는 댓가로
써야할 돈을 고려하면 섯불리 쉽게 형이라 불러! 못하니까 좋긴한데
학교에서도 그랬지만 사회에서 까지 이런걸로 당하면 참.. 정말 지랄 같단 말이지