Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
0481f3f4
Commit
0481f3f4
authored
22 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Remove bit.c/h routines. Not used anymore.
parent
fb715e05
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/backend/lib/Makefile
+2
-2
2 additions, 2 deletions
src/backend/lib/Makefile
src/backend/lib/bit.c
+0
-41
0 additions, 41 deletions
src/backend/lib/bit.c
src/include/utils/bit.h
+0
-38
0 additions, 38 deletions
src/include/utils/bit.h
with
2 additions
and
81 deletions
src/backend/lib/Makefile
+
2
−
2
View file @
0481f3f4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# Makefile for lib (miscellaneous stuff)
# Makefile for lib (miscellaneous stuff)
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.1
6
200
1/10/05 17:28:12 tgl
Exp $
# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.1
7
200
3/01/09 01:23:55 momjian
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -12,7 +12,7 @@ subdir = src/backend/lib
...
@@ -12,7 +12,7 @@ subdir = src/backend/lib
top_builddir
=
../../..
top_builddir
=
../../..
include
$(top_builddir)/src/Makefile.global
include
$(top_builddir)/src/Makefile.global
OBJS
=
bit.o
dllist.o lispsort.o stringinfo.o
OBJS
=
dllist.o lispsort.o stringinfo.o
all
:
SUBSYS.o
all
:
SUBSYS.o
...
...
This diff is collapsed.
Click to expand it.
src/backend/lib/bit.c
deleted
100644 → 0
+
0
−
41
View file @
fb715e05
/*-------------------------------------------------------------------------
*
* bit.c
* Standard bit array code.
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/bit.c,v 1.15 2002/06/20 20:29:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
"postgres.h"
#include
"utils/bit.h"
void
BitArraySetBit
(
BitArray
bitArray
,
BitIndex
bitIndex
)
{
bitArray
[
bitIndex
/
BITS_PER_BYTE
]
|=
(
1
<<
(
BITS_PER_BYTE
-
1
-
(
bitIndex
%
BITS_PER_BYTE
)));
}
void
BitArrayClearBit
(
BitArray
bitArray
,
BitIndex
bitIndex
)
{
bitArray
[
bitIndex
/
BITS_PER_BYTE
]
&=
~
(
1
<<
(
BITS_PER_BYTE
-
1
-
(
bitIndex
%
BITS_PER_BYTE
)));
}
bool
BitArrayBitIsSet
(
BitArray
bitArray
,
BitIndex
bitIndex
)
{
return
((
bitArray
[
bitIndex
/
BITS_PER_BYTE
]
&
(
1
<<
(
BITS_PER_BYTE
-
1
-
(
bitIndex
%
BITS_PER_BYTE
)))
)
!=
0
);
}
This diff is collapsed.
Click to expand it.
src/include/utils/bit.h
deleted
100644 → 0
+
0
−
38
View file @
fb715e05
/*-------------------------------------------------------------------------
*
* bit.h
* Standard bit array definitions.
*
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: bit.h,v 1.13 2002/06/20 20:29:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef BIT_H
#define BIT_H
typedef
bits8
*
BitArray
;
typedef
uint32
BitIndex
;
/*
* BitArraySetBit
* Sets (to 1) the value of a bit in a bit array.
*/
extern
void
BitArraySetBit
(
BitArray
bitArray
,
BitIndex
bitIndex
);
/*
* BitArrayClearBit
* Clears (to 0) the value of a bit in a bit array.
*/
extern
void
BitArrayClearBit
(
BitArray
bitArray
,
BitIndex
bitIndex
);
/*
* BitArrayBitIsSet
* True iff the bit is set (1) in a bit array.
*/
extern
bool
BitArrayBitIsSet
(
BitArray
bitArray
,
BitIndex
bitIndex
);
#endif
/* BIT_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment