jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Static Public Member Functions | List of all members
jubatus::core::storage::detail::bitcount_impl< T, 1 > Struct Template Reference

#include <bit_vector.hpp>

Collaboration diagram for jubatus::core::storage::detail::bitcount_impl< T, 1 >:
Collaboration graph

Static Public Member Functions

static int call (T bits)
 

Detailed Description

template<typename T>
struct jubatus::core::storage::detail::bitcount_impl< T, 1 >

Definition at line 39 of file bit_vector.hpp.

Member Function Documentation

template<typename T >
static int jubatus::core::storage::detail::bitcount_impl< T, 1 >::call ( bits)
inlinestatic

Definition at line 40 of file bit_vector.hpp.

40  {
41  bits = (bits & 0x55) + (bits >> 1 & 0x55);
42  bits = (bits & 0x33) + (bits >> 2 & 0x33);
43  return (bits & 0x0f) + (bits >> 4 & 0x0f);
44  }

The documentation for this struct was generated from the following file: