Uploaded January 2020 | Updated November 2026, 2 hours ago
This computer science video describes bitwise logical shift operations. It demonstrates the workings of the logical left shift and the logical right shift. It shows how logical shifts can be used to multiply or divide the contents of a register by 2, and explains the limitations of this approach to performing arithmetic. The application of left and right logical shifts along with AND and OR bitmasks as a means of changing the order of bytes in a register is mentioned. The use of logical shifts with bitmasks to pack or unpack 32 bit RGB colour codes is described in detail. The video includes a demonstration of Visual Basic.NET code for manipulating 32 bit RGB codes, and a JavaScript function to convert RGB values into a hexadecimal colour code.
This computer science video describes bitwise logical shift operations. It demonstrates the workings of the logical left shift and the logical right shift. It shows how logical shifts can be used to multiply or divide the contents of a register by 2, and explains the limitations of this approach to performing arithmetic. The application of left and right logical shifts along with AND and OR bitmasks as a means of changing the order of bytes in a register is mentioned. The use of logical shifts with bitmasks to pack or unpack 32 bit RGB colour codes is described in detail. The video includes a demonstration of Visual Basic.NET code for manipulating 32 bit RGB codes, and a JavaScript function to convert RGB values into a hexadecimal colour code.










