Frage im Vorstellungsgespräch bei NVIDIA

Bit manipulation question - given 32 bit integer, return the bits between 24th and 27th bit position

Antworten zu Vorstellungsgespräch

Anonym

4. Nov. 2011

#define BIT24TO27(x) (x>>24 & 0xF) this macro will give you desired result.

2

Anonym

1. Okt. 2011

You have to use left shift and right shift operator