Announcement

Collapse
No announcement yet.

32 arithmetic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • yuck
    replied


    if u finish those 32bit functions then please don't be afraid to share, lots of lazy people waiting

    Leave a comment:


  • ahagele
    replied


    Thanks for that. It's not very difficult to do it. I was just hoping someone came across that before and made some code library.
    I'm just lazy and don't want to repeat done stuff. 32 bit numbers is a pretty standard format after all.
    I'll just write up the functions I'll need.

    Andreas

    Leave a comment:


  • kaddrison
    replied


    If you need 16bit can you not do the maths on the first 2 bytes as a 16bit number then the same on the 2nd 2 - first 2 then make the highbyte / second 2 the low byte of the scaled 16bit answer

    Leave a comment:


  • ahagele
    started a topic 32 arithmetic

    32 arithmetic

    Is there any code available for simple 32 bit arithmetic? +,-,* and / would do.
    I got 32bit binary numbers coming on the comms port and need to reformat them into the 16 bit variable sizes available.

    Thanks for your help

    Andreas
Working...
X