GNU PROLOG with UTF8 support
oper_supp.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------*
2  * GNU Prolog *
3  * *
4  * Part : FD constraint solver buit-in predicates *
5  * File : oper_supp.h *
6  * Descr.: FD Operation support - header file *
7  * Author: Daniel Diaz *
8  * *
9  * Copyright (C) 1999-2015 Daniel Diaz *
10  * *
11  * This file is part of GNU Prolog *
12  * *
13  * GNU Prolog is free software: you can redistribute it and/or *
14  * modify it under the terms of either: *
15  * *
16  * - the GNU Lesser General Public License as published by the Free *
17  * Software Foundation; either version 3 of the License, or (at your *
18  * option) any later version. *
19  * *
20  * or *
21  * *
22  * - the GNU General Public License as published by the Free *
23  * Software Foundation; either version 2 of the License, or (at your *
24  * option) any later version. *
25  * *
26  * or both in parallel, as here. *
27  * *
28  * GNU Prolog is distributed in the hope that it will be useful, *
29  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
30  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
31  * General Public License for more details. *
32  * *
33  * You should have received copies of the GNU General Public License and *
34  * the GNU Lesser General Public License along with this program. If *
35  * not, see http://www.gnu.org/licenses/. *
36  *-------------------------------------------------------------------------*/
37 
38 
39 /*---------------------------------*
40  * Constants *
41  *---------------------------------*/
42 
43 /*---------------------------------*
44  * Type Definitions *
45  *---------------------------------*/
46 
47 /*---------------------------------*
48  * Global Variables *
49  *---------------------------------*/
50 
51 /*---------------------------------*
52  * Function Prototypes *
53  *---------------------------------*/
54 
55 unsigned Pl_Power(unsigned x, unsigned n);
56 
57 unsigned Pl_Nth_Root_Dn(unsigned y, unsigned n);
58 
59 unsigned Pl_Nth_Root_Up(unsigned y, unsigned n);
60 
61 unsigned Pl_Nth_Root_Exact(unsigned y, unsigned n);
62 
63 unsigned Pl_Sqrt_Dn(unsigned y);
64 
65 unsigned Pl_Sqrt_Up(unsigned y);
66 
67 unsigned Pl_Sqrt_Exact(unsigned y);
68 
69 unsigned Pl_Find_Expon_Dn(unsigned x, unsigned y);
70 
71 unsigned Pl_Find_Expon_Up(unsigned x, unsigned y);
72 
73 unsigned Pl_Find_Expon_Exact(unsigned x, unsigned y);
74 
75 void Pl_Full_Coeff_Power_Var(Range *y, int a, Range *n);
76 
77 void Pl_Full_Find_Expon(Range *n, int a, Range *y);
78 
79 void Pl_Full_Var_Power_Coeff(Range *y, Range *x, int a);
80 
81 void Pl_Full_Nth_Root(Range *x, Range *y, int a);
82 
83 void Full_Max_Cst_Var(Range *z, int a, Range *x);
84 
85 void Full_Min_Cst_Var(Range *z, int a, Range *x);
unsigned Pl_Power(unsigned x, unsigned n)
Definition: oper_supp.c:74
unsigned Pl_Nth_Root_Dn(unsigned y, unsigned n)
Definition: oper_supp.c:110
unsigned Pl_Nth_Root_Exact(unsigned y, unsigned n)
Definition: oper_supp.c:181
void Pl_Full_Var_Power_Coeff(Range *y, Range *x, int a)
Definition: oper_supp.c:501
void Full_Min_Cst_Var(Range *z, int a, Range *x)
unsigned Pl_Find_Expon_Exact(unsigned x, unsigned y)
Definition: oper_supp.c:313
unsigned Pl_Sqrt_Dn(unsigned y)
Definition: oper_supp.c:203
void Pl_Full_Nth_Root(Range *x, Range *y, int a)
Definition: oper_supp.c:558
unsigned Pl_Nth_Root_Up(unsigned y, unsigned n)
Definition: oper_supp.c:156
void Full_Max_Cst_Var(Range *z, int a, Range *x)
unsigned Pl_Find_Expon_Dn(unsigned x, unsigned y)
Definition: oper_supp.c:267
Definition: fd_range.h:54
void Pl_Full_Coeff_Power_Var(Range *y, int a, Range *n)
Definition: oper_supp.c:385
unsigned Pl_Sqrt_Up(unsigned y)
Definition: oper_supp.c:229
int y
Definition: asm_inst.c:44
PlLong x
Definition: chkma.c:99
unsigned Pl_Find_Expon_Up(unsigned x, unsigned y)
Definition: oper_supp.c:290
unsigned Pl_Sqrt_Exact(unsigned y)
Definition: oper_supp.c:248
void Pl_Full_Find_Expon(Range *n, int a, Range *y)
Definition: oper_supp.c:445