7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $PostgreSQL: pgsql/src/backend/utils/adt/tsgistidx.c,v 1.5 2007/11/1600:13:02 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/backend/utils/adt/tsgistidx.c,v 1.6 2007/11/1601:12:24 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -50,7 +50,7 @@ typedef char *BITVECP;
50
50
51
51
typedef struct
52
52
{
53
- int32 vl_len_ ;/* varlena header (do not touch directly!) */
53
+ int32 vl_len_ ;/* varlena header (do not touch directly!) */
54
54
int4 flag ;
55
55
char data [1 ];
56
56
}SignTSVector ;
@@ -133,8 +133,8 @@ gtsvectorout(PG_FUNCTION_ARGS)
133
133
static int
134
134
compareint (const void * va ,const void * vb )
135
135
{
136
- int4 a = * ((int4 * )va );
137
- int4 b = * ((int4 * )vb );
136
+ int4 a = * ((int4 * )va );
137
+ int4 b = * ((int4 * )vb );
138
138
139
139
if (a == b )
140
140
return 0 ;
@@ -167,7 +167,7 @@ uniqueint(int4 *a, int4 l)
167
167
}
168
168
169
169
static void
170
- makesign (BITVECP sign ,SignTSVector * a )
170
+ makesign (BITVECP sign ,SignTSVector * a )
171
171
{
172
172
int4 k ,
173
173
len = ARRNELEM (a );
@@ -252,8 +252,8 @@ gtsvector_compress(PG_FUNCTION_ARGS)
252
252
253
253
LOOPBYTE
254
254
{
255
- if ((sign [i ]& 0xff )!= 0xff )
256
- PG_RETURN_POINTER (retval );
255
+ if ((sign [i ]& 0xff )!= 0xff )
256
+ PG_RETURN_POINTER (retval );
257
257
}
258
258
259
259
len = CALCGTSIZE (SIGNKEY |ALLISTRUE ,0 );
@@ -299,7 +299,7 @@ typedef struct
299
299
* is there value 'val' in array or not ?
300
300
*/
301
301
static bool
302
- checkcondition_arr (void * checkval ,QueryOperand * val )
302
+ checkcondition_arr (void * checkval ,QueryOperand * val )
303
303
{
304
304
int4 * StopLow = ((CHKVAL * )checkval )-> arrb ;
305
305
int4 * StopHigh = ((CHKVAL * )checkval )-> arre ;
@@ -322,7 +322,7 @@ checkcondition_arr(void *checkval, QueryOperand * val)
322
322
}
323
323
324
324
static bool
325
- checkcondition_bit (void * checkval ,QueryOperand * val )
325
+ checkcondition_bit (void * checkval ,QueryOperand * val )
326
326
{
327
327
return GETBIT (checkval ,HASHVAL (val -> valcrc ));
328
328
}
@@ -364,7 +364,7 @@ gtsvector_consistent(PG_FUNCTION_ARGS)
364
364
}
365
365
366
366
static int4
367
- unionkey (BITVECP sbase ,SignTSVector * add )
367
+ unionkey (BITVECP sbase ,SignTSVector * add )
368
368
{
369
369
int4 i ;
370
370
@@ -487,7 +487,7 @@ sizebitvec(BITVECP sign)
487
487
i ;
488
488
489
489
LOOPBYTE
490
- size += number_of_ones [(unsignedchar )sign [i ]];
490
+ size += number_of_ones [(unsignedchar )sign [i ]];
491
491
return size ;
492
492
}
493
493
@@ -507,7 +507,7 @@ hemdistsign(BITVECP a, BITVECP b)
507
507
}
508
508
509
509
static int
510
- hemdist (SignTSVector * a ,SignTSVector * b )
510
+ hemdist (SignTSVector * a ,SignTSVector * b )
511
511
{
512
512
if (ISALLTRUE (a ))
513
513
{
@@ -557,7 +557,7 @@ typedef struct
557
557
}CACHESIGN ;
558
558
559
559
static void
560
- fillcache (CACHESIGN * item ,SignTSVector * key )
560
+ fillcache (CACHESIGN * item ,SignTSVector * key )
561
561
{
562
562
item -> allistrue = false;
563
563
if (ISARRKEY (key ))
@@ -578,8 +578,8 @@ typedef struct
578
578
static int
579
579
comparecost (const void * va ,const void * vb )
580
580
{
581
- SPLITCOST * a = (SPLITCOST * )va ;
582
- SPLITCOST * b = (SPLITCOST * )vb ;
581
+ SPLITCOST * a = (SPLITCOST * )va ;
582
+ SPLITCOST * b = (SPLITCOST * )vb ;
583
583
584
584
if (a -> cost == b -> cost )
585
585
return 0 ;
@@ -589,7 +589,7 @@ comparecost(const void *va, const void *vb)
589
589
590
590
591
591
static int
592
- hemdistcache (CACHESIGN * a ,CACHESIGN * b )
592
+ hemdistcache (CACHESIGN * a ,CACHESIGN * b )
593
593
{
594
594
if (a -> allistrue )
595
595
{