xref: /qemu/tests/fp/platform.h (revision 1be5a765c08cee3a9587c8a8d3fc2ea247b13f9c)
13ac1f813SEmilio G. Cota #ifndef QEMU_TESTFLOAT_PLATFORM_H
23ac1f813SEmilio G. Cota #define QEMU_TESTFLOAT_PLATFORM_H
33ac1f813SEmilio G. Cota /*
43ac1f813SEmilio G. Cota  * Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
53ac1f813SEmilio G. Cota  * California.  All rights reserved.
63ac1f813SEmilio G. Cota  *
73ac1f813SEmilio G. Cota  * Redistribution and use in source and binary forms, with or without
83ac1f813SEmilio G. Cota  * modification, are permitted provided that the following conditions are met:
93ac1f813SEmilio G. Cota  *
103ac1f813SEmilio G. Cota  *  1. Redistributions of source code must retain the above copyright notice,
113ac1f813SEmilio G. Cota  *     this list of conditions, and the following disclaimer.
123ac1f813SEmilio G. Cota  *
133ac1f813SEmilio G. Cota  *  2. Redistributions in binary form must reproduce the above copyright notice,
143ac1f813SEmilio G. Cota  *     this list of conditions, and the following disclaimer in the
153ac1f813SEmilio G. Cota  *     documentation and/or other materials provided with the distribution.
163ac1f813SEmilio G. Cota  *
173ac1f813SEmilio G. Cota  *  3. Neither the name of the University nor the names of its contributors may
183ac1f813SEmilio G. Cota  *     be used to endorse or promote products derived from this software without
193ac1f813SEmilio G. Cota  *     specific prior written permission.
203ac1f813SEmilio G. Cota  *
213ac1f813SEmilio G. Cota  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS", AND ANY
223ac1f813SEmilio G. Cota  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
233ac1f813SEmilio G. Cota  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE
243ac1f813SEmilio G. Cota  * DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
253ac1f813SEmilio G. Cota  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
263ac1f813SEmilio G. Cota  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
273ac1f813SEmilio G. Cota  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
283ac1f813SEmilio G. Cota  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
293ac1f813SEmilio G. Cota  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
303ac1f813SEmilio G. Cota  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
313ac1f813SEmilio G. Cota  */
32*e03b5686SMarc-André Lureau #include "qemu/compiler.h"
333ac1f813SEmilio G. Cota 
34*e03b5686SMarc-André Lureau #if !HOST_BIG_ENDIAN
353ac1f813SEmilio G. Cota #define LITTLEENDIAN 1
363ac1f813SEmilio G. Cota /* otherwise do not define it */
373ac1f813SEmilio G. Cota #endif
383ac1f813SEmilio G. Cota 
393ac1f813SEmilio G. Cota #define INLINE static inline
403ac1f813SEmilio G. Cota 
413ac1f813SEmilio G. Cota #endif /* QEMU_TESTFLOAT_PLATFORM_H */
42