Back to index

glibc  2.9
Functions
s_scalblnl.c File Reference
#include "soft-fp.h"
#include "quad.h"

Go to the source code of this file.

Functions

long double __scalblnl (long double arg, int exp)

Function Documentation

long double __scalblnl ( long double  arg,
int  exp 
)

Definition at line 32 of file s_scalblnl.c.

{
  FP_DECL_EX;
  FP_DECL_Q(A);
  long double r;

  FP_UNPACK_Q(A, arg);
  switch (A_c)
    {
    case FP_CLS_ZERO:
      return arg;
    case FP_CLS_NAN:
    case FP_CLS_INF:
      FP_HANDLE_EXCEPTIONS;
      return arg;
    }
  A_e += exp;
  FP_PACK_Q(r, A);
  FP_HANDLE_EXCEPTIONS;

  return r;
}