This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

c dode for 24bit*8bit multiplication,result of 32bit should be divided by 32 bit

i want to multiply 24bit value which i get from spi ,i stored it in an array of 3byte & i want to multiply with a constant of 8bit,the result i get which is a 32bit has to be divided with a constant of 32bit
i want a c code for this procedure so pls help me

Parents
  • "IS my procedure of calling inline function is correct"

    NO!

    You aren't calling anything!

    The entire body of the function is pure assembler - what on earth is the point in that?!

    It is an assembler funcion - so put it in an Assembler file and don't mess about with the inline nonsense!

    "also suggest me to receive values store in k1,k2,k3,k4 in c function"

    You didn't listen last time - why should I say it again?!

Reply
  • "IS my procedure of calling inline function is correct"

    NO!

    You aren't calling anything!

    The entire body of the function is pure assembler - what on earth is the point in that?!

    It is an assembler funcion - so put it in an Assembler file and don't mess about with the inline nonsense!

    "also suggest me to receive values store in k1,k2,k3,k4 in c function"

    You didn't listen last time - why should I say it again?!

Children
No data