Subversion Repositories HelenOS-historic

Rev

Rev 534 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 1702
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
 /** @addtogroup generic   
-
 
30
 * @{
-
 
31
 */
-
 
32
/** @file
-
 
33
 */
-
 
34
 
29
#ifndef __BYTEORDER_H__
35
#ifndef __BYTEORDER_H__
30
#define __BYTEORDER_H__
36
#define __BYTEORDER_H__
31
 
37
 
32
static inline __u64 __u64_byteorder_swap(__u64 n)
38
static inline __u64 __u64_byteorder_swap(__u64 n)
33
{
39
{
Line 48... Line 54...
48
        ((n & 0xff0000) >> 8) |
54
        ((n & 0xff0000) >> 8) |
49
        ((n & 0xff000000) >> 24);
55
        ((n & 0xff000000) >> 24);
50
}
56
}
51
 
57
 
52
#endif
58
#endif
-
 
59
 
-
 
60
 /** @}
-
 
61
 */
-
 
62