~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to contrib/intarray/_intbig_gist.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $PostgreSQL: pgsql/contrib/intarray/_intbig_gist.c,v 1.19 2008/05/17 01:28:19 adunstan Exp $ 
 
2
 * $PostgreSQL: pgsql/contrib/intarray/_intbig_gist.c,v 1.20 2009/06/11 14:48:51 momjian Exp $
3
3
 */
4
4
#include "postgres.h"
5
5
 
78
78
** intbig functions
79
79
*********************************************************************/
80
80
static bool
81
 
_intbig_overlap(GISTTYPE * a, ArrayType *b)
 
81
_intbig_overlap(GISTTYPE *a, ArrayType *b)
82
82
{
83
83
        int                     num = ARRNELEMS(b);
84
84
        int4       *ptr = ARRPTR(b);
96
96
}
97
97
 
98
98
static bool
99
 
_intbig_contains(GISTTYPE * a, ArrayType *b)
 
99
_intbig_contains(GISTTYPE *a, ArrayType *b)
100
100
{
101
101
        int                     num = ARRNELEMS(b);
102
102
        int4       *ptr = ARRPTR(b);
243
243
}
244
244
 
245
245
static int
246
 
hemdist(GISTTYPE * a, GISTTYPE * b)
 
246
hemdist(GISTTYPE *a, GISTTYPE *b)
247
247
{
248
248
        if (ISALLTRUE(a))
249
249
        {
265
265
}
266
266
 
267
267
static int4
268
 
unionkey(BITVECP sbase, GISTTYPE * add)
 
268
unionkey(BITVECP sbase, GISTTYPE *add)
269
269
{
270
270
        int4            i;
271
271
        BITVECP         sadd = GETSIGN(add);
506
506
        GISTENTRY  *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
507
507
        ArrayType  *query = (ArrayType *) PG_DETOAST_DATUM(PG_GETARG_POINTER(1));
508
508
        StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
 
509
 
509
510
        /* Oid          subtype = PG_GETARG_OID(3); */
510
511
        bool       *recheck = (bool *) PG_GETARG_POINTER(4);
511
512
        bool            retval;