Changeset 82d062d8 in mainline for uspace/lib/c/include
- 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/include
- Files:
-
- 2 edited
-
double_to_str.h (modified) (2 diffs)
-
ieee_double.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
