forked from Imagelibrary/rtems
rtems: Change CONTEXT_FP_SIZE define
Define CONTEXT_FP_SIZE to zero in case hardware and software floating point support is disabled. The problem is that empty structures have a different size in C and C++. In C++ they have a non-zero size leading to an overestimate of the workspace size.
This commit is contained in:
@@ -43,7 +43,11 @@ extern "C" {
|
|||||||
* This constant defines the number of bytes required
|
* This constant defines the number of bytes required
|
||||||
* to store a full floating point context.
|
* to store a full floating point context.
|
||||||
*/
|
*/
|
||||||
#define CONTEXT_FP_SIZE CPU_CONTEXT_FP_SIZE
|
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
|
||||||
|
#define CONTEXT_FP_SIZE CPU_CONTEXT_FP_SIZE
|
||||||
|
#else
|
||||||
|
#define CONTEXT_FP_SIZE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialize context area.
|
* @brief Initialize context area.
|
||||||
|
|||||||
Reference in New Issue
Block a user