Thread: bitwise char array shift

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2017
    Posts
    15
    Ok but im talking about your first code.
    Yor first code d ont have the !!.
    Remember your second code work fine and shift right. Is ok.
    But for my propose i need shift left. Like yor first code. Yor first code work but dont cary byte 0 to byte 2......
    So I ask you if you teste yor firt code and fix the cary error.
    Now im not able to test uni code. Just tomorrow morning i can test.

  2. #2
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078
    Quote Originally Posted by totoco View Post
    Ok but im talking about your first code.
    Yor first code d ont have the !!.
    Remember your second code work fine and shift right. Is ok.
    But for my propose i need shift left. Like yor first code. Yor first code work but dont cary byte 0 to byte 2......
    So I ask you if you teste yor firt code and fix the cary error.
    Now im not able to test uni code. Just tomorrow morning i can test.
    Seeing your code I assume you speak portuguese, right? I am brazillian and here's one article I wrote sometime ago:

    Deslocando uma string de bits.

    Maybe you adapt this to your needs.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bitwise Operator Shift
    By YannB in forum C Programming
    Replies: 14
    Last Post: 03-04-2014, 09:49 PM
  2. homework help bitwise shift
    By progmateur in forum C Programming
    Replies: 1
    Last Post: 03-30-2013, 03:00 PM
  3. How to shift an array and add a char to the middle?
    By vertigodown in forum C Programming
    Replies: 3
    Last Post: 04-22-2012, 04:46 AM
  4. Bitwise Shift
    By blurx in forum C Programming
    Replies: 2
    Last Post: 10-12-2008, 09:39 AM
  5. Bitwise Shift Operations
    By John_L in forum Tech Board
    Replies: 19
    Last Post: 02-25-2008, 11:22 AM

Tags for this Thread