Changeset 82d062d8 in mainline for uspace/lib
- Timestamp:
- 2012-10-31T21:03:03Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f220e25
- Parents:
- 34b9299
- Location:
- uspace/lib/c
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/double_to_str.c
r34b9299 r82d062d8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 #include <double_to_str.h> 29 30 -
uspace/lib/c/generic/ieee_double.c
r34b9299 r82d062d8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 #include <ieee_double.h> 29 30 -
uspace/lib/c/generic/power_of_ten.c
r34b9299 r82d062d8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 #include "private/power_of_ten.h" 29 30 -
uspace/lib/c/generic/private/power_of_ten.h
r34b9299 r82d062d8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 #ifndef POWER_OF_TEN_H_ 29 30 #define POWER_OF_TEN_H_ … … 32 33 struct fp_num_t_tag; 33 34 34 35 void get_power_of_ten(int binary_exp, struct fp_num_t_tag *power_of_10, 36 int *decimal_exp); 37 35 extern void get_power_of_ten(int, struct fp_num_t_tag *, int *); 38 36 39 37 #endif -
uspace/lib/c/include/double_to_str.h
r34b9299 r82d062d8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 #ifndef DOUBLE_TO_STR_H_ 29 30 #define DOUBLE_TO_STR_H_ … … 45 46 #define MAX_DOUBLE_STR_BUF_SIZE 21 46 47 47 48 48 /* Fwd decl.*/ 49 49 struct ieee_double_t_tag; 50 50 51 52 int double_to_short_str(struct ieee_double_t_tag val, char *buf, size_t buf_size, 53 int *dec_exponent); 54 55 int double_to_fixed_str(struct ieee_double_t_tag ieee_val, int signif_d_cnt, 56 int frac_d_cnt, char *buf, size_t buf_size, int *dec_exponent); 57 51 extern int double_to_short_str(struct ieee_double_t_tag, char *, size_t, int *); 52 extern int double_to_fixed_str(struct ieee_double_t_tag, int, int, char *, 53 size_t, int *); 58 54 59 55 #endif -
uspace/lib/c/include/ieee_double.h
r34b9299 r82d062d8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 #ifndef IEEE_DOUBLE_H_ 29 30 #define IEEE_DOUBLE_H_ … … 31 32 #include <stdint.h> 32 33 #include <bool.h> 33 34 34 35 35 /** Represents a non-negative floating point number: significand * 2^exponent */ … … 40 40 int exponent; 41 41 } fp_num_t; 42 43 42 44 43 /** Double number description according to IEEE 754. */ … … 66 65 } ieee_double_t; 67 66 68 69 ieee_double_t extract_ieee_double(double val); 67 extern ieee_double_t extract_ieee_double(double); 70 68 71 69 #endif
Note:
See TracChangeset
for help on using the changeset viewer.