
labs
7-36
labs
Multiply by a Power of Two
ldexp
Syntax
#include <math.h>
double
ldexp
(double x, int exp);
Defined in
ldexp.c in rts.src
Description
The ldexp function multiplies a floating-point number x by 2
exp
and returns
(x
×
2)
exp
. The exponent (exp)
can be a negative or a positive value. A range
error may occur if the result is too large.
Example
double result;
result = ldexp(1.5, 5);
/* result is 48.0 */
result = ldexp(6.0, −3);
/* result is 0.75 */
ldiv
Local Time
localtime
Syntax
#include <time.h>
struct tm *
localtime
(const time_t *timer);
Defined in
localtime.c in rts.src
Description
The localtime function converts a calendar time (pointed to by timer) into a
broken-down time, which is expressed as local time. The function returns a
pointer to the converted time.
For more information about the functions and types that the time.h header
declares and defines, see section 7.2.12, Time Functions (time.h), on page
7-11.
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...