+#if defined(SDCC_MATH_LIB) && defined(SDCC_mcs51) && !defined(SDCC_USE_XSTACK) && !defined(SDCC_STACK_AUTO) && !defined(_SDCC_NO_ASM_LIB_FUNCS)
+/* Compile the mcs51 assembly version only when all these
+ conditions are met. Since not all the functions are
+ reentrant, do not compile with --stack-auto is used. */
+#define MATH_ASM_MCS51
+#endif
+
+