simd_floating_point.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _SIMD_FLOATING_POINT_H_
  6. #define _SIMD_FLOATING_POINT_H_
  7. #include "../aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_simd_f32x4_arith(AOTCompContext *comp_ctx,
  13. AOTFuncContext *func_ctx,
  14. FloatArithmetic arith_op);
  15. bool
  16. aot_compile_simd_f64x2_arith(AOTCompContext *comp_ctx,
  17. AOTFuncContext *func_ctx,
  18. FloatArithmetic arith_op);
  19. bool
  20. aot_compile_simd_f32x4_neg(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  21. bool
  22. aot_compile_simd_f64x2_neg(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  23. bool
  24. aot_compile_simd_f32x4_abs(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  25. bool
  26. aot_compile_simd_f64x2_abs(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx);
  27. bool
  28. aot_compile_simd_f32x4_sqrt(AOTCompContext *comp_ctx,
  29. AOTFuncContext *func_ctx);
  30. bool
  31. aot_compile_simd_f64x2_sqrt(AOTCompContext *comp_ctx,
  32. AOTFuncContext *func_ctx);
  33. #ifdef __cplusplus
  34. } /* end of extern "C" */
  35. #endif
  36. #endif /* end of _SIMD_FLOATING_POINT_H_ */