rvv_hal.hpp 968 B

1234567891011121314151617181920212223242526272829303132
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. #ifndef OPENCV_HAL_RVV_HPP_INCLUDED
  5. #define OPENCV_HAL_RVV_HPP_INCLUDED
  6. #include "opencv2/core/base.hpp"
  7. #include "opencv2/core/utility.hpp"
  8. #include "opencv2/core/hal/interface.h"
  9. #if defined(__riscv_v) && __riscv_v == 1000000
  10. #define CV_HAL_RVV_1P0_ENABLED 1
  11. #else
  12. #define CV_HAL_RVV_1P0_ENABLED 0
  13. #endif
  14. #if defined(__riscv_v) && __riscv_v == 7000 && defined(__GNUC__) && __GNUC__ == 10 && __GNUC_MINOR__ == 4 && defined(__THEAD_VERSION__)
  15. #define CV_HAL_RVV_071_ENABLED 1
  16. #else
  17. #define CV_HAL_RVV_071_ENABLED 0
  18. #endif
  19. #if CV_HAL_RVV_1P0_ENABLED || CV_HAL_RVV_071_ENABLED
  20. #include <riscv_vector.h>
  21. #endif
  22. #include "include/types.hpp"
  23. #include "include/core.hpp"
  24. #include "include/imgproc.hpp"
  25. #include "include/features2d.hpp"
  26. #endif // OPENCV_HAL_RVV_HPP_INCLUDED