Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

bit.h

Blame
  • bit.h 954 B
    /*-------------------------------------------------------------------------
     *
     * 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 */