functions.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2006 Josef Cejka
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * - Redistributions of source code must retain the above copyright
00010  *   notice, this list of conditions and the following disclaimer.
00011  * - Redistributions in binary form must reproduce the above copyright
00012  *   notice, this list of conditions and the following disclaimer in the
00013  *   documentation and/or other materials provided with the distribution.
00014  * - The name of the author may not be used to endorse or promote products
00015  *   derived from this software without specific prior written permission.
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
00018  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00019  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
00020  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
00021  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
00022  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00023  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00024  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00025  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00026  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00027  */
00028 
00037 #ifndef __SOFTFLOAT_FUNCTIONS_H__
00038 #define __SOFTFLOAT_FUNCTIONS_H__
00039 
00040 #define float32_to_int(X) float32_to_int32(X);
00041 #define float32_to_long(X) float32_to_int32(X);
00042 #define float32_to_longlong(X) float32_to_int64(X);
00043 
00044 #define float64_to_int(X) float64_to_int32(X);
00045 #define float64_to_long(X) float64_to_int32(X);
00046 #define float64_to_longlong(X) float64_to_int64(X);
00047 
00048 #define float32_to_uint(X) float32_to_uint32(X);
00049 #define float32_to_ulong(X) float32_to_uint32(X);
00050 #define float32_to_ulonglong(X) float32_to_uint64(X);
00051 
00052 #define float64_to_uint(X) float64_to_uint32(X);
00053 #define float64_to_ulong(X) float64_to_uint32(X);
00054 #define float64_to_ulonglong(X) float64_to_uint64(X);
00055 
00056 #define int_to_float32(X) int32_to_float32(X);
00057 #define long_to_float32(X) int32_to_float32(X);
00058 #define longlong_to_float32(X) int64_to_float32(X);
00059 
00060 #define int_to_float64(X) int32_to_float64(X);
00061 #define long_to_float64(X) int32_to_float64(X);
00062 #define longlong_to_float64(X) int64_to_float64(X);
00063 
00064 #define uint_to_float32(X) uint32_to_float32(X);
00065 #define ulong_to_float32(X) uint32_to_float32(X);
00066 #define ulonglong_to_float32(X) uint64_to_float32(X);
00067 
00068 #define uint_to_float64(X) uint32_to_float64(X);
00069 #define ulong_to_float64(X) uint32_to_float64(X);
00070 #define ulonglong_to_float64(X) uint64_to_float64(X);
00071 
00072 #endif
00073 
00074 

Generated on Thu Jun 2 07:45:48 2011 for HelenOS/USB by  doxygen 1.4.7