11.20Schristos/*	$NetBSD: endian.h,v 1.20 2013/05/23 21:39:49 christos Exp $	*/
21.11Sjonathan
31.20Schristos/*-
41.20Schristos * Copyright (c) 2013 The NetBSD Foundation, Inc.
51.20Schristos * All rights reserved.
61.20Schristos *
71.20Schristos * Redistribution and use in source and binary forms, with or without
81.20Schristos * modification, are permitted provided that the following conditions
91.20Schristos * are met:
101.20Schristos * 1. Redistributions of source code must retain the above copyright
111.20Schristos *    notice, this list of conditions and the following disclaimer.
121.20Schristos * 2. Redistributions in binary form must reproduce the above copyright
131.20Schristos *    notice, this list of conditions and the following disclaimer in the
141.20Schristos *    documentation and/or other materials provided with the distribution.
151.20Schristos *
161.20Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
171.20Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
181.20Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
191.20Schristos * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
201.20Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
211.20Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
221.20Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
231.20Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
241.20Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
251.20Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
261.20Schristos * POSSIBILITY OF SUCH DAMAGE.
271.20Schristos */
281.17Ssimonb#include <sys/endian.h>
29