1 option
Safe Handling of Floating Point Math in C Code Embedded Applications Ford Motor Company
- Format:
- Conference/Event
- Author/Creator:
- Loucks, Loucks, author.
- Conference Name:
- WCX 17: SAE World Congress Experience (2017-04-04 : Detroit, Michigan, United States)
- Language:
- English
- Physical Description:
- 1 online resource
- Place of Publication:
- Warrendale, PA SAE International 2017
- Summary:
- The introduction of floating point math in Embedded Application ECU's has made the implementation of complex math functions less error prone but not error proof. This paper shall focus on raising awareness of the pitfalls that come from the use of the basic floating point arithmetic operations, that is, Divide, Multiply, Add and Subtract. Due to the known pitfalls inherent in these basic math operations, it is proposed that a standard library with common functions appropriate for Powertrain Embedded applications (but not limited to Powertrain) be identified. This paper shall explore what these common functions will look like for both standard C code as well as the equivalent versions in Matlab Simulink. The particular pitfalls this paper shall discuss are Divide-By-Zero, Overflow, Underflow and Loss-Of-Precision for both single and double precision floating point variables. This paper shall reference the IEEE-754 Floating Point standard used by most Embedded C applications. This paper shall discuss the importance of recognizing these pitfalls as well as understanding the trade-offs in terms of processor resources
- Notes:
- Vendor supplied data
- Publisher Number:
- 2017-01-1619
- Access Restriction:
- Restricted for use by site license
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.