OSDN Git Service

Update copyrights to 2003.
[pg-rex/syncrep.git] / src / include / utils / int8.h
1 /*-------------------------------------------------------------------------
2  *
3  * int8.h
4  *        Declarations for operations on 64-bit integers.
5  *
6  *
7  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: int8.h,v 1.38 2003/08/04 02:40:15 momjian Exp $
11  *
12  * NOTES
13  * These data types are supported on all 64-bit architectures, and may
14  *      be supported through libraries on some 32-bit machines. If your machine
15  *      is not currently supported, then please try to make it so, then post
16  *      patches to the postgresql.org hackers mailing list.
17  *
18  *-------------------------------------------------------------------------
19  */
20 #ifndef INT8_H
21 #define INT8_H
22
23 #include "fmgr.h"
24
25
26 extern bool scanint8(const char *str, bool errorOK, int64 *result);
27
28 extern Datum int8in(PG_FUNCTION_ARGS);
29 extern Datum int8out(PG_FUNCTION_ARGS);
30 extern Datum int8recv(PG_FUNCTION_ARGS);
31 extern Datum int8send(PG_FUNCTION_ARGS);
32
33 extern Datum int8eq(PG_FUNCTION_ARGS);
34 extern Datum int8ne(PG_FUNCTION_ARGS);
35 extern Datum int8lt(PG_FUNCTION_ARGS);
36 extern Datum int8gt(PG_FUNCTION_ARGS);
37 extern Datum int8le(PG_FUNCTION_ARGS);
38 extern Datum int8ge(PG_FUNCTION_ARGS);
39
40 extern Datum int84eq(PG_FUNCTION_ARGS);
41 extern Datum int84ne(PG_FUNCTION_ARGS);
42 extern Datum int84lt(PG_FUNCTION_ARGS);
43 extern Datum int84gt(PG_FUNCTION_ARGS);
44 extern Datum int84le(PG_FUNCTION_ARGS);
45 extern Datum int84ge(PG_FUNCTION_ARGS);
46
47 extern Datum int48eq(PG_FUNCTION_ARGS);
48 extern Datum int48ne(PG_FUNCTION_ARGS);
49 extern Datum int48lt(PG_FUNCTION_ARGS);
50 extern Datum int48gt(PG_FUNCTION_ARGS);
51 extern Datum int48le(PG_FUNCTION_ARGS);
52 extern Datum int48ge(PG_FUNCTION_ARGS);
53
54 extern Datum int82eq(PG_FUNCTION_ARGS);
55 extern Datum int82ne(PG_FUNCTION_ARGS);
56 extern Datum int82lt(PG_FUNCTION_ARGS);
57 extern Datum int82gt(PG_FUNCTION_ARGS);
58 extern Datum int82le(PG_FUNCTION_ARGS);
59 extern Datum int82ge(PG_FUNCTION_ARGS);
60
61 extern Datum int28eq(PG_FUNCTION_ARGS);
62 extern Datum int28ne(PG_FUNCTION_ARGS);
63 extern Datum int28lt(PG_FUNCTION_ARGS);
64 extern Datum int28gt(PG_FUNCTION_ARGS);
65 extern Datum int28le(PG_FUNCTION_ARGS);
66 extern Datum int28ge(PG_FUNCTION_ARGS);
67
68 extern Datum int8um(PG_FUNCTION_ARGS);
69 extern Datum int8up(PG_FUNCTION_ARGS);
70 extern Datum int8pl(PG_FUNCTION_ARGS);
71 extern Datum int8mi(PG_FUNCTION_ARGS);
72 extern Datum int8mul(PG_FUNCTION_ARGS);
73 extern Datum int8div(PG_FUNCTION_ARGS);
74 extern Datum int8abs(PG_FUNCTION_ARGS);
75 extern Datum int8fac(PG_FUNCTION_ARGS);
76 extern Datum int8mod(PG_FUNCTION_ARGS);
77 extern Datum int8inc(PG_FUNCTION_ARGS);
78 extern Datum int8larger(PG_FUNCTION_ARGS);
79 extern Datum int8smaller(PG_FUNCTION_ARGS);
80
81 extern Datum int8and(PG_FUNCTION_ARGS);
82 extern Datum int8or(PG_FUNCTION_ARGS);
83 extern Datum int8xor(PG_FUNCTION_ARGS);
84 extern Datum int8not(PG_FUNCTION_ARGS);
85 extern Datum int8shl(PG_FUNCTION_ARGS);
86 extern Datum int8shr(PG_FUNCTION_ARGS);
87
88 extern Datum int84pl(PG_FUNCTION_ARGS);
89 extern Datum int84mi(PG_FUNCTION_ARGS);
90 extern Datum int84mul(PG_FUNCTION_ARGS);
91 extern Datum int84div(PG_FUNCTION_ARGS);
92
93 extern Datum int48pl(PG_FUNCTION_ARGS);
94 extern Datum int48mi(PG_FUNCTION_ARGS);
95 extern Datum int48mul(PG_FUNCTION_ARGS);
96 extern Datum int48div(PG_FUNCTION_ARGS);
97
98 extern Datum int48(PG_FUNCTION_ARGS);
99 extern Datum int84(PG_FUNCTION_ARGS);
100
101 extern Datum int28(PG_FUNCTION_ARGS);
102 extern Datum int82(PG_FUNCTION_ARGS);
103
104 extern Datum i8tod(PG_FUNCTION_ARGS);
105 extern Datum dtoi8(PG_FUNCTION_ARGS);
106
107 extern Datum i8tof(PG_FUNCTION_ARGS);
108 extern Datum ftoi8(PG_FUNCTION_ARGS);
109
110 extern Datum i8tooid(PG_FUNCTION_ARGS);
111 extern Datum oidtoi8(PG_FUNCTION_ARGS);
112
113 extern Datum int8_text(PG_FUNCTION_ARGS);
114 extern Datum text_int8(PG_FUNCTION_ARGS);
115
116 #endif   /* INT8_H */