Skip to content

Cross platform bit count #5

@willyd

Description

@willyd

Add a utility function to caffe:

Something like:

int bitcount(unsigned int v) {
#ifndef _MSCVER
  return __builtin_popcount(v);
#else
    return __pop_count(v)
#endif
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions