![Texas Instruments TMS320C2x User Manual Download Page 192](http://html1.mh-extra.com/html/texas-instruments/tms320c2x/tms320c2x_user-manual_1097073192.webp)
gmtime
7-33
Run-Time-Support Functions
Fraction and Exponent
frexp
Syntax
#include <math.h>
double
frexp
(double value, int *exp);
Defined in
frexp30.asm in rts.src
Description
The frexp function breaks a floating-point number into a normalized fraction
(f) and the integer power of 2. The function returns f and exp such that
0.5
−
|f|<1.0 and value ==f x 2
exp
. The frexp function stores the power is stored
in the int pointed to by exp. If value is 0, both parts of the result are 0.
Example
double fraction;
int exp;
fraction = frexp(3.0, &exp);
/* after execution, fraction is .75 and exp is 2 */
Greenwich Mean Time
gmtime
Syntax
#include <time.h>
struct tm *
gmtime
(const time_t *timer);
Defined in
gmtime.c in rts.src
Description
The gmtime function converts a calendar time (pointed to by timer) into Coordi-
nated Universal Time (represented as a broken-down time). The name gmtime
has historical significance as Greenwich Mean 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
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...