Пример #1
0
void
_OtsCvtQUX (unsigned long a)
{
  FP_DECL_EX;
  FP_DECL_Q(C);
  FP_DECL_RETURN(c);

  FP_FROM_INT_Q(C, a, 64, unsigned long);
  FP_PACK_RAW_Q(c, C);

  FP_RETURN(c);
}
Пример #2
0
void
_OtsMulX(long al, long ah, long bl, long bh, long _round)
{
  FP_DECL_EX;
  FP_DECL_Q(A); FP_DECL_Q(B); FP_DECL_Q(C);
  FP_DECL_RETURN(c);

  FP_INIT_ROUNDMODE;
  FP_UNPACK_Q(A, a);
  FP_UNPACK_Q(B, b);
  FP_MUL_Q(C, A, B);
  FP_PACK_Q(c, C);
  FP_HANDLE_EXCEPTIONS;

  FP_RETURN(c);
}