source: mainline/uspace/lib/softfloat/arch/sparc64/include/functions.h@ 087c27f6

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 087c27f6 was 711e7fe5, checked in by Prutkov Alex <prutkov.alex@…>, 14 years ago

Added printf module

  • Property mode set to 100755
File size: 3.5 KB
Line 
1/*
2 * Copyright (c) 2006 Josef Cejka
3 * Copyright (c) 2011 Petr Koupy
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * - Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * - The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30 /** @addtogroup softfloatsparc64 sparc64
31 * @ingroup sfl
32 * @brief softfloat architecture dependent definitions
33 * @{
34 */
35/** @file
36 */
37
38#ifndef __SOFTFLOAT_FUNCTIONS_H__
39#define __SOFTFLOAT_FUNCTIONS_H__
40
41#define SPARC_SOFTFLOAT
42
43#define float32_to_int(X) float32_to_int32(X);
44#define float32_to_long(X) float32_to_int64(X);
45#define float32_to_longlong(X) float32_to_int64(X);
46
47#define float64_to_int(X) float64_to_int32(X);
48#define float64_to_long(X) float64_to_int64(X);
49#define float64_to_longlong(X) float64_to_int64(X);
50
51#define float128_to_int(X) float128_to_int32(X);
52#define float128_to_long(X) float128_to_int64(X);
53#define float128_to_longlong(X) float128_to_int64(X);
54
55#define float32_to_uint(X) float32_to_uint32(X);
56#define float32_to_ulong(X) float32_to_uint64(X);
57#define float32_to_ulonglong(X) float32_to_uint64(X);
58
59#define float64_to_uint(X) float64_to_uint32(X);
60#define float64_to_ulong(X) float64_to_uint64(X);
61#define float64_to_ulonglong(X) float64_to_uint64(X);
62
63#define float128_to_uint(X) float128_to_uint32(X);
64#define float128_to_ulong(X) float128_to_uint64(X);
65#define float128_to_ulonglong(X) float128_to_uint64(X);
66
67#define int_to_float32(X) int32_to_float32(X);
68#define long_to_float32(X) int64_to_float32(X);
69#define longlong_to_float32(X) int64_to_float32(X);
70
71#define int_to_float64(X) int32_to_float64(X);
72#define long_to_float64(X) int64_to_float64(X);
73#define longlong_to_float64(X) int64_to_float64(X);
74
75#define int_to_float128(X) int32_to_float128(X);
76#define long_to_float128(X) int64_to_float128(X);
77#define longlong_to_float128(X) int64_to_float128(X);
78
79#define uint_to_float32(X) uint32_to_float32(X);
80#define ulong_to_float32(X) uint64_to_float32(X);
81#define ulonglong_to_float32(X) uint64_to_float32(X);
82
83#define uint_to_float64(X) uint32_to_float64(X);
84#define ulong_to_float64(X) uint64_to_float64(X);
85#define ulonglong_to_float64(X) uint64_to_float64(X);
86
87#define uint_to_float128(X) uint32_to_float128(X);
88#define ulong_to_float128(X) uint64_to_float128(X);
89#define ulonglong_to_float128(X) uint64_to_float128(X);
90
91#endif
92
93 /** @}
94 */
Note: See TracBrowser for help on using the repository browser.