source: mainline/uspace/lib/softfloat/conversion.h@ 35b8bfe

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 35b8bfe 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
RevLine 
[b5440cf]1/*
[df4ed85]2 * Copyright (c) 2005 Josef Cejka
[c67aff2]3 * Copyright (c) 2011 Petr Koupy
[b5440cf]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
[750636a]30 /** @addtogroup softfloat
[846848a6]31 * @{
32 */
[c67aff2]33/** @file Conversion of precision and conversion between integers and floats.
[846848a6]34 */
35
[b5440cf]36#ifndef __CONVERSION_H__
37#define __CONVERSION_H__
38
[88d5c1e]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);
[feef1cd]52
[750636a]53extern uint32_t float32_to_uint32(float32);
54extern int32_t float32_to_int32(float32);
[feef1cd]55
[750636a]56extern uint64_t float32_to_uint64(float32);
57extern int64_t float32_to_int64(float32);
[1d83419]58
[c67aff2]59extern uint32_t float64_to_uint32(float64);
60extern int32_t float64_to_int32(float64);
61
[750636a]62extern uint64_t float64_to_uint64(float64);
63extern int64_t float64_to_int64(float64);
[1d83419]64
[88d5c1e]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
[c67aff2]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
[750636a]77extern float32 uint32_to_float32(uint32_t);
78extern float32 int32_to_float32(int32_t);
[a82695c]79
[750636a]80extern float32 uint64_to_float32(uint64_t);
81extern float32 int64_to_float32(int64_t);
[a82695c]82
[750636a]83extern float64 uint32_to_float64(uint32_t);
84extern float64 int32_to_float64(int32_t);
[f37d769]85
[750636a]86extern float64 uint64_to_float64(uint64_t);
87extern float64 int64_to_float64(int64_t);
[f37d769]88
[88d5c1e]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
[c67aff2]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
[b5440cf]101#endif
102
[750636a]103/** @}
[846848a6]104 */
Note: See TracBrowser for help on using the repository browser.