Question: Write functions using bit-wise operators called roll_R8(b,n), roll_R16(b,n), roll_R32(b,n), and roll_R64(b,n) that perform bit-wise right rolls on b (with n shifts). Furthermore, dont use any
Write functions using bit-wise operators called roll_R8(b,n), roll_R16(b,n), roll_R32(b,n), and roll_R64(b,n) that perform bit-wise right rolls on b (with n shifts). Furthermore, dont use any arrays, including bit[i]. The function should return the rolled value of b. Write a main function to illustrate your functions.
use c++ programming.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
