~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/lib/softfloat/arch/arm32/include/functions.h

  • Committer: Jakub Jermar
  • Date: 2011-09-07 22:19:24 UTC
  • mfrom: (1113.1.41 devel)
  • Revision ID: jakub@jermar.eu-20110907221924-cfgktigu4e8l0uyv
Merge from lp:~helenos-posix/helenos/devel.

* Petr Koupy's port of binutils.
* Jiri Zarevucky's port of pcc.
* Petr and Jiri's libposix library.
* Changes needed to make it all work together.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (c) 2006 Josef Cejka
 
3
 * Copyright (c) 2011 Petr Koupy
3
4
 * All rights reserved.
4
5
 *
5
6
 * Redistribution and use in source and binary forms, with or without
32
33
 * @{
33
34
 */
34
35
/** @file 
35
 
 *  @brief Softfloat architecture dependent definitions.
36
36
 */
37
37
 
38
38
#ifndef __SOFTFLOAT_FUNCTIONS_H__
46
46
#define float64_to_long(X) float64_to_int32(X);
47
47
#define float64_to_longlong(X) float64_to_int64(X);
48
48
 
 
49
#define float128_to_int(X) float128_to_int32(X);
 
50
#define float128_to_long(X) float128_to_int32(X);
 
51
#define float128_to_longlong(X) float128_to_int64(X);
 
52
 
49
53
#define float32_to_uint(X) float32_to_uint32(X);
50
54
#define float32_to_ulong(X) float32_to_uint32(X);
51
55
#define float32_to_ulonglong(X) float32_to_uint64(X);
54
58
#define float64_to_ulong(X) float64_to_uint32(X);
55
59
#define float64_to_ulonglong(X) float64_to_uint64(X);
56
60
 
 
61
#define float128_to_uint(X) float128_to_uint32(X);
 
62
#define float128_to_ulong(X) float128_to_uint32(X);
 
63
#define float128_to_ulonglong(X) float128_to_uint64(X);
 
64
 
57
65
#define int_to_float32(X) int32_to_float32(X);
58
66
#define long_to_float32(X) int32_to_float32(X);
59
67
#define longlong_to_float32(X) int64_to_float32(X);
62
70
#define long_to_float64(X) int32_to_float64(X);
63
71
#define longlong_to_float64(X) int64_to_float64(X);
64
72
 
 
73
#define int_to_float128(X) int32_to_float128(X);
 
74
#define long_to_float128(X) int32_to_float128(X);
 
75
#define longlong_to_float128(X) int64_to_float128(X);
 
76
 
65
77
#define uint_to_float32(X) uint32_to_float32(X);
66
78
#define ulong_to_float32(X) uint32_to_float32(X);
67
79
#define ulonglong_to_float32(X) uint64_to_float32(X);
70
82
#define ulong_to_float64(X) uint32_to_float64(X);
71
83
#define ulonglong_to_float64(X) uint64_to_float64(X);
72
84
 
 
85
#define uint_to_float128(X) uint32_to_float128(X);
 
86
#define ulong_to_float128(X) uint32_to_float128(X);
 
87
#define ulonglong_to_float128(X) uint64_to_float128(X);
 
88
 
73
89
#endif
74
90
 
75
91
/** @}