CMS 3D CMS Logo

lat::BitOpsMortonExtract< B > Struct Template Reference

Merge even bits of n to the right end of the result value. More...

#include <Iguana/Utilities/classlib/utils/BitOps.h>


Classes

struct  Op


Detailed Description

template<unsigned int B>
struct lat::BitOpsMortonExtract< B >

Merge even bits of n to the right end of the result value.

This operation undoes mortonInterleave. To decompose a Morton sequence number n to its components x and y, do x = mortonExtract (n); y = mortonExtract (n >> 1).

Each operation moves a chunk of B bits closer to its neighbours by a step of B bits, reversing mortonInterleave---like this:

Definition at line 358 of file BitOps.h.


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:48:21 2009 for CMSSW by  doxygen 1.5.4