arm_boolean_distance.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* ----------------------------------------------------------------------
  2. * Project: CMSIS DSP Library
  3. * Title: arm_svm_linear_init_f32.c
  4. * Description: SVM Linear Instance Initialization
  5. *
  6. * $Date: 23 April 2021
  7. * $Revision: V1.9.0
  8. *
  9. * Target Processor: Cortex-M and Cortex-A cores
  10. * -------------------------------------------------------------------- */
  11. /*
  12. * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
  13. *
  14. * SPDX-License-Identifier: Apache-2.0
  15. *
  16. * Licensed under the Apache License, Version 2.0 (the License); you may
  17. * not use this file except in compliance with the License.
  18. * You may obtain a copy of the License at
  19. *
  20. * www.apache.org/licenses/LICENSE-2.0
  21. *
  22. * Unless required by applicable law or agreed to in writing, software
  23. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  24. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  25. * See the License for the specific language governing permissions and
  26. * limitations under the License.
  27. */
  28. #include "dsp/distance_functions.h"
  29. #include <limits.h>
  30. #include <math.h>
  31. #if defined(ARM_MATH_NEON)
  32. #include "NEMath.h"
  33. #endif
  34. #define TT
  35. #define TF
  36. #define FT
  37. #define EXT _TT_TF_FT
  38. #include "arm_boolean_distance_template.h"
  39. #undef TT
  40. #undef FF
  41. #undef TF
  42. #undef FT
  43. #undef EXT
  44. #define TF
  45. #define FT
  46. #define EXT _TF_FT
  47. #include "arm_boolean_distance_template.h"
  48. #undef TT
  49. #undef FF
  50. #undef TF
  51. #undef FT
  52. #undef EXT
  53. #define TT
  54. #define FF
  55. #define TF
  56. #define FT
  57. #define EXT _TT_FF_TF_FT
  58. #include "arm_boolean_distance_template.h"
  59. #undef TT
  60. #undef FF
  61. #undef TF
  62. #undef FT
  63. #undef EXT
  64. #define TT
  65. #define EXT _TT
  66. #include "arm_boolean_distance_template.h"