Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Bitwise operator

Hi i'm new to this forum and I have simple question about binary operators...

My program works fine on with a boolean operator flawlessly but part of my code needs to use bitwise operators... I tried & operator and it doesn't work... I tried browsing "The Newlib C Library" to look for function that I can used but still unlucky...

Could somebody please help me with all the bitwise operator that I can use without prompting me errors?.

Do I need to implement embedded multipliers to my nios 2/s to emulate this bitwise functions....??>....

Thanks..

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Lanzones,

    You need to provide an example of code that shows the problem, you can't just say it doesn't work.

    I'm sure there must be something wrong with your assumptions about precedence of operators.

    Banx.