[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Comparing scalars

Function: int ap_scalar_infty (ap_scalar_t* op)
Return -1 if op is set to +infty, -1 if set to -infty, and 0 otherwise.

Function: int ap_scalar_sgn (ap_scalar_t* op)
Return the sign of op (+1, 0 or -1).

Function: int ap_scalar_cmp (ap_scalar_t* op1, ap_scalar_t* op2)
Function: int ap_scalar_cmp_int (ap_scalar_t* op1, int op2)
Exact comparison between two scalars (resp. a scalar and an integer).

Return -1 if op1 is less than op2, 0 if they are equal, and +1 if op1 is greater than op2.

Function: bool ap_scalar_equal (ap_scalar_t* op1, ap_scalar_t* op2);
Function: bool ap_scalar_equal_int (ap_scalar_t* op1, int op2);
Equality test between two scalars (resp. a scalar and an integer).

Return true if equality.



This document was generated on September, 10 2009 using texi2html