]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/kernel/v2_0/tests/fptest.c
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / kernel / v2_0 / tests / fptest.c
index f455c8b3b3c10717884dacc5374eced29ff096f3..e7e6cfcb2ee7bdd3fd6630113a108391d3c601a8 100644 (file)
@@ -61,7 +61,7 @@
 #include <cyg/infra/diag.h>
 
 //#include <cyg/kernel/test/stackmon.h>
-//#include CYGHWR_MEMORY_LAYOUT_H
+#include CYGHWR_MEMORY_LAYOUT_H
 
 //==========================================================================
 
@@ -243,8 +243,11 @@ void fptest1( CYG_ADDRWORD id )
 }
 
 //==========================================================================
-
+#if (CYGMEM_REGION_ram_SIZE / 8 / 2) < 10000
+#define FP2_COUNT (CYGMEM_REGION_ram_SIZE / 8 / 2)
+#else
 #define FP2_COUNT 10000
+#endif
 
 static double fpt2_values[FP2_COUNT];