PIPS
value.c
Go to the documentation of this file.
1 /*
2 
3  $Id$
4 
5  Copyright 1989-2016 MINES ParisTech
6 
7  This file is part of Linear/C3 Library.
8 
9  Linear/C3 Library is free software: you can redistribute it and/or modify it
10  under the terms of the GNU Lesser General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  any later version.
13 
14  Linear/C3 Library is distributed in the hope that it will be useful, but WITHOUT ANY
15  WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE.
17 
18  See the GNU Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with Linear/C3 Library. If not, see <http://www.gnu.org/licenses/>.
22 
23 */
24 
25 #ifdef HAVE_CONFIG_H
26  #include "config.h"
27 #endif
28 #include <stdlib.h>
29 #include <stdio.h>
30 #include <limits.h>
31 
32 #include "arithmetique.h"
33 #include "linear_assert.h"
34 
35 /* Same as value sign */
37 {
38  int cmp = 0;
39  if(value_gt(v1, v2))
40  cmp = 1;
41  else if(value_gt(v2, v1))
42  cmp = -1;
43  return cmp;
44 }
#define value_gt(v1, v2)
int Value
int value_comparison(Value v1, Value v2)
Same as value sign.
Definition: value.c:36