Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
bad33982
Commit
bad33982
authored
Jul 08, 1998
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add int8 8-byte integer type.
parent
0f0d51b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
109 additions
and
1 deletion
+109
-1
src/include/utils/builtins.h
src/include/utils/builtins.h
+6
-1
src/include/utils/int8.h
src/include/utils/int8.h
+103
-0
No files found.
src/include/utils/builtins.h
View file @
bad33982
...
@@ -6,12 +6,16 @@
...
@@ -6,12 +6,16 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: builtins.h,v 1.4
4 1998/06/16 06:41:51 momjian
Exp $
* $Id: builtins.h,v 1.4
5 1998/07/08 14:10:30 thomas
Exp $
*
*
* NOTES
* NOTES
* This should normally only be included by fmgr.h.
* This should normally only be included by fmgr.h.
* Under no circumstances should it ever be included before
* Under no circumstances should it ever be included before
* including fmgr.h!
* including fmgr.h!
* fmgr.h does not seem to include this file, so don't know where this
* comment came from. Backend code must include this stuff explicitly
* as far as I can tell...
* - thomas 1998-06-08
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -22,6 +26,7 @@
...
@@ -22,6 +26,7 @@
#include <utils/geo_decls.h>
#include <utils/geo_decls.h>
#include <utils/datetime.h>
#include <utils/datetime.h>
#include <utils/nabstime.h>
#include <utils/nabstime.h>
#include <utils/int8.h>
#include <utils/cash.h>
#include <utils/cash.h>
#include <utils/rel.h>
#include <utils/rel.h>
...
...
src/include/utils/int8.h
0 → 100644
View file @
bad33982
/*-------------------------------------------------------------------------
*
* int8.h--
* Declarations for operations on 64-bit integers.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: int8.h,v 1.1 1998/07/08 14:10:30 thomas Exp $
*
* NOTES
* These data types are supported on all 64-bit architectures, and may
* be supported through libraries on some 32-bit machines. If your machine
* is not currently supported, then please try to make it so, then post
* patches to the postgresql.org hackers mailing list.
*
* This code was written for and originally appeared in the contrib
* directory as a user-defined type.
* - thomas 1998-06-08
*
*-------------------------------------------------------------------------
*/
#ifndef INT8_H
#define INT8_H
#if defined(__alpha) || defined(PPC)
typedef
long
int
int64
;
#define INT64_FORMAT "%ld"
#elif defined(__GNUC__) && defined(i386)
typedef
long
long
int
int64
;
#define INT64_FORMAT "%Ld"
#else
typedef
long
int
int64
;
#define INT64_FORMAT "%ld"
#endif
/*
#if sizeof(int64) == 8
#define HAVE_64BIT_INTS 1
#endif
*/
extern
int64
*
int8in
(
char
*
str
);
extern
char
*
int8out
(
int64
*
val
);
extern
bool
int8eq
(
int64
*
val1
,
int64
*
val2
);
extern
bool
int8ne
(
int64
*
val1
,
int64
*
val2
);
extern
bool
int8lt
(
int64
*
val1
,
int64
*
val2
);
extern
bool
int8gt
(
int64
*
val1
,
int64
*
val2
);
extern
bool
int8le
(
int64
*
val1
,
int64
*
val2
);
extern
bool
int8ge
(
int64
*
val1
,
int64
*
val2
);
extern
bool
int84eq
(
int64
*
val1
,
int32
val2
);
extern
bool
int84ne
(
int64
*
val1
,
int32
val2
);
extern
bool
int84lt
(
int64
*
val1
,
int32
val2
);
extern
bool
int84gt
(
int64
*
val1
,
int32
val2
);
extern
bool
int84le
(
int64
*
val1
,
int32
val2
);
extern
bool
int84ge
(
int64
*
val1
,
int32
val2
);
extern
bool
int48eq
(
int32
val1
,
int64
*
val2
);
extern
bool
int48ne
(
int32
val1
,
int64
*
val2
);
extern
bool
int48lt
(
int32
val1
,
int64
*
val2
);
extern
bool
int48gt
(
int32
val1
,
int64
*
val2
);
extern
bool
int48le
(
int32
val1
,
int64
*
val2
);
extern
bool
int48ge
(
int32
val1
,
int64
*
val2
);
extern
int64
*
int8um
(
int64
*
val
);
extern
int64
*
int8pl
(
int64
*
val1
,
int64
*
val2
);
extern
int64
*
int8mi
(
int64
*
val1
,
int64
*
val2
);
extern
int64
*
int8mul
(
int64
*
val1
,
int64
*
val2
);
extern
int64
*
int8div
(
int64
*
val1
,
int64
*
val2
);
extern
int64
*
int8larger
(
int64
*
val1
,
int64
*
val2
);
extern
int64
*
int8smaller
(
int64
*
val1
,
int64
*
val2
);
extern
int64
*
int84pl
(
int64
*
val1
,
int32
val2
);
extern
int64
*
int84mi
(
int64
*
val1
,
int32
val2
);
extern
int64
*
int84mul
(
int64
*
val1
,
int32
val2
);
extern
int64
*
int84div
(
int64
*
val1
,
int32
val2
);
extern
int64
*
int48pl
(
int32
val1
,
int64
*
val2
);
extern
int64
*
int48mi
(
int32
val1
,
int64
*
val2
);
extern
int64
*
int48mul
(
int32
val1
,
int64
*
val2
);
extern
int64
*
int48div
(
int32
val1
,
int64
*
val2
);
extern
int64
*
int48
(
int32
val
);
extern
int32
int84
(
int64
*
val
);
#if FALSE
extern
int64
*
int28
(
int16
val
);
extern
int16
int82
(
int64
*
val
);
#endif
extern
float64
i8tod
(
int64
*
val
);
extern
int64
*
dtoi8
(
float64
val
);
#endif
/* INT8_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment