~ubuntu-branches/debian/experimental/arduino/experimental

« back to all changes in this revision

Viewing changes to libraries/Ethernet/util.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2012-03-11 18:19:42 UTC
  • mfrom: (1.1.5) (5.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20120311181942-be2clnbz1gcehixb
Tags: 1:1.0.1~rc1+dfsg-1
New upstream release, experimental.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef UTIL_H
2
2
#define UTIL_H
3
3
 
4
 
#define htons(x) ( (x)<<8 | ((x)>>8)&0xFF )
 
4
#define htons(x) ( ((x)<<8) | (((x)>>8)&0xFF) )
5
5
#define ntohs(x) htons(x)
6
6
 
7
7
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \