@c ----------------------------------------------------------------------
@node ldexp, math
@heading @code{ldexp}
@subheading Syntax

@example
#include <math.h>

double ldexp(double val, int exp);
@end example

@subheading Return Value

This function returns @var{val} * 2 ** @var{exp}.

@subheading Example

@example
ldexp(3.5,4) == 3.5 * 16 == 56.0
@end example

@c ----------------------------------------------------------------------
@node ldiv, math
@heading @code{ldiv}
@subheading Syntax

@example
#include <stdlib.h>

ldiv_t ldiv(long numerator, long denomonator);
@end example

@subheading Description

Returns the quotient and remainder of the division @var{numberator}
divided by @var{denomonator}.  The return type is as follows:

@example
typedef struct @{
  long quot;
  long rem;
@} ldiv_t;
@end example

@subheading Return Value

The results of the division are returned.

@subheading Example

@example
ldiv_t l = div(42, 3);
printf("42 = %ld x 3 + %ld\n", l.quot, l.rem);
@end example

