Back to index

glibc  2.9
Functions
ots_cmpe.c File Reference
#include "local-soft-fp.h"

Go to the source code of this file.

Functions

static long internal_compare (long al, long ah, long bl, long bh)
long _OtsLssX (long al, long ah, long bl, long bh)
long _OtsLeqX (long al, long ah, long bl, long bh)
long _OtsGtrX (long al, long ah, long bl, long bh)
long _OtsGeqX (long al, long ah, long bl, long bh)

Function Documentation

long _OtsGeqX ( long  al,
long  ah,
long  bl,
long  bh 
)

Definition at line 76 of file ots_cmpe.c.

{
  long r = internal_compare (al, ah, bl, bh);
  if (r == 2)
    return -1;
  else
    return r >= 0;
}

Here is the call graph for this function:

long _OtsGtrX ( long  al,
long  ah,
long  bl,
long  bh 
)

Definition at line 66 of file ots_cmpe.c.

{
  long r = internal_compare (al, ah, bl, bh);
  if (r == 2)
    return -1;
  else
    return r > 0;
}

Here is the call graph for this function:

long _OtsLeqX ( long  al,
long  ah,
long  bl,
long  bh 
)

Definition at line 56 of file ots_cmpe.c.

{
  long r = internal_compare (al, ah, bl, bh);
  if (r == 2)
    return -1;
  else
    return r <= 0;
}

Here is the call graph for this function:

long _OtsLssX ( long  al,
long  ah,
long  bl,
long  bh 
)

Definition at line 46 of file ots_cmpe.c.

{
  long r = internal_compare (al, ah, bl, bh);
  if (r == 2)
    return -1;
  else
    return r < 0;
}

Here is the call graph for this function:

static long internal_compare ( long  al,
long  ah,
long  bl,
long  bh 
) [static]

Definition at line 25 of file ots_cmpe.c.

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

  FP_UNPACK_RAW_Q(A, a);
  FP_UNPACK_RAW_Q(B, b);
  FP_CMP_Q (r, A, B, 2);

  /* Relative comparisons signal invalid operation if either operand is NaN. */
  if (r == 2)
    {
      FP_SET_EXCEPTION(FP_EX_INVALID);
      FP_HANDLE_EXCEPTIONS;
    }

  return r;
}

Here is the caller graph for this function: