source: mainline/uspace/lib/softfloat/conversion.h@ b3cf946

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since b3cf946 was 2416085, checked in by Martin Decky <martin@…>, 13 years ago

softfloat: move sources to a single directory
implement more ARM EABI bindings

  • Property mode set to 100644
File size: 3.6 KB
Line 
1/*
2 * Copyright (c) 2005 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 softfloat
31 * @{
32 */
33/** @file Conversion of precision and conversion between integers and floats.
34 */
35
36#ifndef __CONVERSION_H__
37#define __CONVERSION_H__
38
39extern float64 float32_to_float64(float32);
40extern float96 float32_to_float96(float32);
41extern float128 float32_to_float128(float32);
42extern float96 float64_to_float96(float64);
43extern float128 float64_to_float128(float64);
44extern float128 float96_to_float128(float96);
45
46extern float32 float64_to_float32(float64);
47extern float32 float96_to_float32(float96);
48extern float64 float96_to_float64(float96);
49extern float32 float128_to_float32(float128);
50extern float64 float128_to_float64(float128);
51extern float96 float128_to_float96(float128);
52
53extern uint32_t float32_to_uint32(float32);
54extern int32_t float32_to_int32(float32);
55
56extern uint64_t float32_to_uint64(float32);
57extern int64_t float32_to_int64(float32);
58
59extern uint32_t float64_to_uint32(float64);
60extern int32_t float64_to_int32(float64);
61
62extern uint64_t float64_to_uint64(float64);
63extern int64_t float64_to_int64(float64);
64
65extern uint32_t float96_to_uint32(float96);
66extern int32_t float96_to_int32(float96);
67
68extern uint64_t float96_to_uint64(float96);
69extern int64_t float96_to_int64(float96);
70
71extern uint32_t float128_to_uint32(float128);
72extern int32_t float128_to_int32(float128);
73
74extern uint64_t float128_to_uint64(float128);
75extern int64_t float128_to_int64(float128);
76
77extern float32 uint32_to_float32(uint32_t);
78extern float32 int32_to_float32(int32_t);
79
80extern float32 uint64_to_float32(uint64_t);
81extern float32 int64_to_float32(int64_t);
82
83extern float64 uint32_to_float64(uint32_t);
84extern float64 int32_to_float64(int32_t);
85
86extern float64 uint64_to_float64(uint64_t);
87extern float64 int64_to_float64(int64_t);
88
89extern float96 uint32_to_float96(uint32_t);
90extern float96 int32_to_float96(int32_t);
91
92extern float96 uint64_to_float96(uint64_t);
93extern float96 int64_to_float96(int64_t);
94
95extern float128 uint32_to_float128(uint32_t);
96extern float128 int32_to_float128(int32_t);
97
98extern float128 uint64_to_float128(uint64_t);
99extern float128 int64_to_float128(int64_t);
100
101#endif
102
103/** @}
104 */
Note: See TracBrowser for help on using the repository browser.