Floating Point Calculation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dushyant Sapra
    New Member
    • Feb 2012
    • 1

    Floating Point Calculation

    Dear All,

    I am working on ARM7 Processor, I want to perform floating point calculation that is subtraction, Addition, Multiplication and division on floating numbers, but my processor support max 32 bit size to any datatype. Can anybody suggest how to do it.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    To start with you may want to ask the question do you really need to use floating point or could you use scaled integers.

    Money is an example of this, people often try to use floating point to capture the decimal nature of money ($3.55) however a simple scaling to use cents or 1/10s of cents results in integers being fine (355).

    If you still really need to use floating point then I believe that the Arm7 architecture supports it at least in single precision (float in C/C++ which is normally 32 bits)

    The Arm CPU architecture specifies the behavior of a CPU implementation. Achieve different performance characteristics with different implementations of the architecture.

    Comment

    Working...