Changeset 82d062d8 in mainline for uspace/lib


Ignore:
Timestamp:
2012-10-31T21:03:03Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f220e25
Parents:
34b9299
Message:

Add a missing copyright message and cstyle.

Location:
uspace/lib/c
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/double_to_str.c

    r34b9299 r82d062d8  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
    2829#include <double_to_str.h>
    2930
  • uspace/lib/c/generic/ieee_double.c

    r34b9299 r82d062d8  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
    2829#include <ieee_double.h>
    2930
  • uspace/lib/c/generic/power_of_ten.c

    r34b9299 r82d062d8  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
    2829#include "private/power_of_ten.h"
    2930
  • uspace/lib/c/generic/private/power_of_ten.h

    r34b9299 r82d062d8  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
    2829#ifndef POWER_OF_TEN_H_
    2930#define POWER_OF_TEN_H_
     
    3233struct fp_num_t_tag;
    3334
    34 
    35 void get_power_of_ten(int binary_exp, struct fp_num_t_tag *power_of_10,
    36         int *decimal_exp);
    37 
     35extern void get_power_of_ten(int, struct fp_num_t_tag *, int *);
    3836
    3937#endif
  • uspace/lib/c/include/double_to_str.h

    r34b9299 r82d062d8  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
    2829#ifndef DOUBLE_TO_STR_H_
    2930#define DOUBLE_TO_STR_H_
     
    4546#define MAX_DOUBLE_STR_BUF_SIZE  21
    4647
    47 
    4848/* Fwd decl.*/
    4949struct ieee_double_t_tag;
    5050
    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 
     51extern int double_to_short_str(struct ieee_double_t_tag, char *, size_t, int *);
     52extern int double_to_fixed_str(struct ieee_double_t_tag, int, int, char *,
     53    size_t, int *);
    5854
    5955#endif
  • uspace/lib/c/include/ieee_double.h

    r34b9299 r82d062d8  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
    2829#ifndef IEEE_DOUBLE_H_
    2930#define IEEE_DOUBLE_H_
     
    3132#include <stdint.h>
    3233#include <bool.h>
    33 
    3434
    3535/** Represents a non-negative floating point number: significand * 2^exponent */
     
    4040        int exponent;
    4141} fp_num_t;
    42 
    4342
    4443/** Double number description according to IEEE 754. */
     
    6665} ieee_double_t;
    6766
    68 
    69 ieee_double_t extract_ieee_double(double val);
     67extern ieee_double_t extract_ieee_double(double);
    7068
    7169#endif
Note: See TracChangeset for help on using the changeset viewer.