Subversion Repositories canSerial

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include "arm_math.h"
  2. #include "support_test_data.h"
  3.  
  4. #define MAX_INPUT_ELEMENTS 32
  5. #define BIGGEST_INPUT_TYPE float32_t
  6.  
  7. /*--------------------------------------------------------------------------------*/
  8. /* Input/Output Buffers */
  9. /*--------------------------------------------------------------------------------*/
  10.  
  11. ARR_DESC_DEFINE(BIGGEST_INPUT_TYPE,
  12.                 support_output_fut,
  13.                 MAX_INPUT_ELEMENTS,
  14.                 CURLY(0));
  15.  
  16. ARR_DESC_DEFINE(BIGGEST_INPUT_TYPE,
  17.                 support_output_ref,
  18.                 MAX_INPUT_ELEMENTS,
  19.                 CURLY(0));
  20.  
  21. /*--------------------------------------------------------------------------------*/
  22. /* Block Sizes */
  23. /*--------------------------------------------------------------------------------*/
  24.  
  25. /*
  26.   To change test parameter values add/remove values inside CURLY and update
  27.   the preceeding parameter to reflect the number of values inside CURLY.
  28. */
  29.  
  30. ARR_DESC_DEFINE(uint32_t,
  31.                 support_block_sizes,
  32.                 4,
  33.                 CURLY( 2, 7, 15, 32));
  34.  
  35. /*--------------------------------------------------------------------------------*/
  36. /* Numbers */
  37. /*--------------------------------------------------------------------------------*/
  38.  
  39. ARR_DESC_DEFINE(uint32_t,
  40.                 support_elts,
  41.                 4,
  42.                 CURLY( 0, 1, 0x80000000, 0x7fffffff));
  43.  
  44. /*--------------------------------------------------------------------------------*/
  45. /* Test Data */
  46. /*--------------------------------------------------------------------------------*/
  47.  
  48. ARR_DESC_DEFINE(float32_t,
  49.                 support_f_32,
  50.                 32,
  51.                 CURLY(
  52.                       0.24865986 , -0.13364227, -0.27233250 , -7.33488200,
  53.                       0.42190653 , 1.17435880 , -0.49824914 , 0.87883663,
  54.                       0.63066370 , 1.80275680 , -84.83916000, -2.06773800,
  55.                       7.63452500 , 1.01487610 , -0.65785825 , 1.78019030,
  56.                       -0.34160388, 0.68546050 , -1.81721590 , -0.10340453,
  57.                       -4.48600340, -1.69763480, -1.26022340 , -1.58457480,
  58.                       0.51993870 , 2.83526470 , -0.21502694 , -0.57690346,
  59.                       -0.22945681, 0.79509383 , 0.07275216  , -2.16279080
  60.                       ));
  61.  
  62. /* Alias the 32 element array with wrappers that end sooner. */
  63. ARR_DESC_DEFINE_SUBSET(support_f_15,
  64.                        support_f_32,
  65.                        15);
  66.  
  67. ARR_DESC_DEFINE_SUBSET(support_f_2,
  68.                        support_f_32,
  69.                        2);
  70.  
  71. ARR_DESC_DEFINE(float32_t,
  72.                 support_zeros,
  73.                 32,
  74.                 CURLY(0));
  75.  
  76. /* Aggregate all float datasets. */
  77. ARR_DESC_DEFINE(ARR_DESC_t *,
  78.                 support_f_all,
  79.                 4,
  80.                 CURLY(
  81.                       &support_zeros,
  82.                       &support_f_2,
  83.                       &support_f_15,
  84.                       &support_f_32
  85.                       ));
  86.