xapian-core  1.4.26
Namespaces | Functions
bitstream.cc File Reference

Classes to encode/decode a bitstream. More...

#include <config.h>
#include "bitstream.h"
#include <xapian/types.h>
#include "omassert.h"
#include "pack.h"
#include <vector>
+ Include dependency graph for bitstream.cc:

Go to the source code of this file.

Namespaces

 Xapian
 The Xapian namespace contains public interfaces for the Xapian library.
 

Functions

template<typename T >
static int highest_order_bit (T mask)
 
template<typename T , typename U >
static constexpr T Xapian::safe_shl (T x, U shift)
 Shift left that's safe for shifts wider than the type. More...
 

Detailed Description

Classes to encode/decode a bitstream.

Definition in file bitstream.cc.

Function Documentation

◆ highest_order_bit()

template<typename T >
static int highest_order_bit ( mask)
inlinestatic