composite icon indicating copy to clipboard operation
composite copied to clipboard

Extracting High and Low 32bit words from 64bit value

Open phanikishoreg opened this issue 8 years ago • 2 comments

Add macros and clean-up code to extract High and Low 32bit words from 64bit value. Perhaps also to extract higher_n or lower_n bits! Which might be useful in extracting 16bit from 32bit values, and other more common bit manipulations as macros.

phanikishoreg avatar Jan 05 '17 19:01 phanikishoreg

Yes, making this generic is important for when we port to different platforms. See the round_*_to_* functions for an example of this type of generality.

gparmer avatar Jan 05 '17 20:01 gparmer

Likely in consts.h along with the other pow-2 math.

gparmer avatar Jun 08 '18 21:06 gparmer