libcm is a C development framework with an emphasis on audio signal processing applications.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

cmVectOpsTemplateMain.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // Float
  2. #include "cmVectOpsTemplateUndef.h"
  3. #define VECT_OP_TYPE float
  4. #define VECT_OP_FUNC(Func) cmVOF_##Func
  5. #define VECT_OP_EPSILON FLT_EPSILON
  6. #define VECT_OP_MAX FLT_MAX
  7. #define VECT_OP_MIN FLT_MIN
  8. #define VECT_OP_LAP_FUNC(F) s##F
  9. #define VECT_OP_BLAS_FUNC(F) cblas_s##F
  10. #include "cmVectOpsTemplateHdr.h"
  11. #include "cmVectOpsTemplateCode.h"
  12. #include "cmVectOpsRIHdr.h"
  13. #include "cmVectOpsRICode.h"
  14. // Double
  15. #include "cmVectOpsTemplateUndef.h"
  16. #define VECT_OP_TYPE double
  17. #define VECT_OP_FUNC(F) cmVOD_##F
  18. #define VECT_OP_EPSILON DBL_EPSILON
  19. #define VECT_OP_MAX DBL_MAX
  20. #define VECT_OP_MIN DBL_MIN
  21. #define VECT_OP_LAP_FUNC(F) d##F
  22. #define VECT_OP_BLAS_FUNC(F) cblas_d##F
  23. #include "cmVectOpsTemplateHdr.h"
  24. #include "cmVectOpsTemplateCode.h"
  25. #include "cmVectOpsRIHdr.h"
  26. #include "cmVectOpsRICode.h"
  27. // cmSample_t
  28. #include "cmVectOpsTemplateUndef.h"
  29. #define VECT_OP_TYPE cmSample_t
  30. #define VECT_OP_FUNC(F) cmVOS_##F
  31. #define VECT_OP_EPSILON cmSample_EPSILON
  32. #define VECT_OP_MAX cmSample_MAX
  33. #define VECT_OP_MIN cmSample_MIN
  34. #if CM_FLOAT_SMP == 1
  35. #define VECT_OP_LAP_FUNC(F) s##F
  36. #define VECT_OP_BLAS_FUNC(F) cblas_s##F
  37. #else
  38. #define VECT_OP_LAP_FUNC(F) d##F
  39. #define VECT_OP_BLAS_FUNC(F) cblas_d##F
  40. #endif
  41. #include "cmVectOpsTemplateHdr.h"
  42. #include "cmVectOpsTemplateCode.h"
  43. #include "cmVectOpsRIHdr.h"
  44. #include "cmVectOpsRICode.h"
  45. // cmReal_t
  46. #include "cmVectOpsTemplateUndef.h"
  47. #define VECT_OP_TYPE cmReal_t
  48. #define VECT_OP_FUNC(F) cmVOR_##F
  49. #define VECT_OP_EPSILON cmReal_EPSILON
  50. #define VECT_OP_MAX cmReal_MAX
  51. #define VECT_OP_MIN cmReal_MIN
  52. #if CM_FLOAT_REAL == 1
  53. #define VECT_OP_LAP_FUNC(F) s##F
  54. #define VECT_OP_BLAS_FUNC(F) cblas_s##F
  55. #else
  56. #define VECT_OP_LAP_FUNC(F) d##F
  57. #define VECT_OP_BLAS_FUNC(F) cblas_d##F
  58. #endif
  59. #include "cmVectOpsTemplateHdr.h"
  60. #include "cmVectOpsTemplateCode.h"
  61. #include "cmVectOpsRIHdr.h"
  62. #include "cmVectOpsRICode.h"
  63. // Int
  64. #include "cmVectOpsTemplateUndef.h"
  65. #define VECT_OP_TYPE int
  66. #define VECT_OP_FUNC(F) cmVOI_##F
  67. #include "cmVectOpsRIHdr.h"
  68. #include "cmVectOpsRICode.h"
  69. // Unsigned
  70. #include "cmVectOpsTemplateUndef.h"
  71. #define VECT_OP_TYPE unsigned
  72. #define VECT_OP_FUNC(F) cmVOU_##F
  73. #include "cmVectOpsRIHdr.h"
  74. #include "cmVectOpsRICode.h"
  75. // bool
  76. #include "cmVectOpsTemplateUndef.h"
  77. #define VECT_OP_TYPE bool
  78. #define VECT_OP_FUNC(F) cmVOB_##F
  79. #include "cmVectOpsRIHdr.h"
  80. #include "cmVectOpsRICode.h"
  81. // char
  82. #include "cmVectOpsTemplateUndef.h"
  83. #define VECT_OP_TYPE char
  84. #define VECT_OP_FUNC(F) cmVOC_##F
  85. #include "cmVectOpsRIHdr.h"
  86. #include "cmVectOpsRICode.h"