Questions tagged [byte-shifting]

Related to shifting bytes and byte manipulation. There are operators in most of the programming languages to shift bits which could be used to shift bytes.

77 questions
-2
votes
1 answer

Converting char array to uint16_t array C/C++

I've written the below code to convert and store the data from a string (array of chars) called strinto an array of 16-bit integers called arr16bit The code works. However, i'd say that there's a better or cleaner way to implement this logic, using…
Engineer999
  • 3,683
  • 6
  • 33
  • 71
-3
votes
1 answer

what is this code about?

ok.. I know it sounds annoying to ask questions like this, BUT I really don't understand the code [advance_reg(int*)] below. In the comments of the code, it says that "/the register steps according to the primitive polynomial(64,4,3,1,0);/", I just…
user1595754
  • 81
  • 1
  • 1
  • 7
1 2 3 4 5
6