Rev 230 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 230 | Rev 266 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | 32 | ||
33 | typedef unsigned char fmath_ld_descr_t[8]; |
33 | typedef unsigned char fmath_ld_descr_t[8]; |
34 | 34 | ||
35 | typedef union { double bf; unsigned char ldd[8]; } fmath_ld_union_t; |
35 | typedef union { double bf; unsigned char ldd[8]; } fmath_ld_union_t; |
36 | 36 | ||
37 | int fmath_is_negative(double num); |
- | |
38 | //int fmath_is_exponent_negative(double num); |
- | |
39 | - | ||
40 | /**returns exponent in binary encoding*/ |
37 | /**returns exponent in binary encoding*/ |
41 | signed short fmath_get_binary_exponent(double num); |
38 | signed short fmath_get_binary_exponent(double num); |
42 | 39 | ||
43 | /**returns exponent in decimal encoding*/ |
40 | /**returns exponent in decimal encoding*/ |
44 | double fmath_get_decimal_exponent(double num); |
41 | double fmath_get_decimal_exponent(double num); |
Line 51... | Line 48... | ||
51 | * @param intp integer part of num |
48 | * @param intp integer part of num |
52 | * @return non-integer part |
49 | * @return non-integer part |
53 | */ |
50 | */ |
54 | double fmath_fint(double num, double *intp); |
51 | double fmath_fint(double num, double *intp); |
55 | 52 | ||
56 | /** Return absolute value from num */ |
- | |
57 | double fmath_abs(double num); |
- | |
58 | - | ||
59 | double fmath_set_sign(double num,__u8 sign); |
- | |
60 | - | ||
61 | /** count base^exponent from positive exponent |
53 | /** count base^exponent from positive exponent |
62 | * @param base |
54 | * @param base |
63 | * @param exponent - Must be > 0.0 |
55 | * @param exponent - Must be > 0.0 |
64 | * @return base^exponent or 0.0 (if exponent <=0.0) |
56 | * @return base^exponent or 0.0 (if exponent <=0.0) |
65 | */ |
57 | */ |
66 | double fmath_dpow(double base, double exponent) ; |
58 | double fmath_dpow(double base, double exponent) ; |
67 | 59 | ||
- | 60 | /** return 1, if num is NaN */ |
|
- | 61 | int fmath_is_nan(double num); |
|
- | 62 | ||
- | 63 | /** return 1, if fmath is a infinity */ |
|
- | 64 | int fmath_is_infinity(double num); |