External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2KB

  1. diff --git a/simd-support/neon.c b/simd-support/neon.c
  2. index 196959c..fe04dd4 100644
  3. --- a/simd-support/neon.c
  4. +++ b/simd-support/neon.c
  5. @@ -23,54 +23,9 @@
  6. #if HAVE_NEON
  7. -/* check for an environment where signals are known to work */
  8. -#if defined(unix) || defined(linux)
  9. - # include <signal.h>
  10. - # include <setjmp.h>
  11. -
  12. - static jmp_buf jb;
  13. -
  14. - static void sighandler(int x)
  15. - {
  16. - UNUSED(x);
  17. - longjmp(jb, 1);
  18. - }
  19. -
  20. - static int really_have_neon(void)
  21. - {
  22. - void (*oldsig)(int);
  23. - oldsig = signal(SIGILL, sighandler);
  24. - if (setjmp(jb)) {
  25. - signal(SIGILL, oldsig);
  26. - return 0;
  27. - } else {
  28. - /* paranoia: encode the instruction in binary because the
  29. - assembler may not recognize it without -mfpu=neon */
  30. - /*asm volatile ("vand q0, q0, q0");*/
  31. - asm volatile (".long 0xf2000150");
  32. - signal(SIGILL, oldsig);
  33. - return 1;
  34. - }
  35. - }
  36. -
  37. - int X(have_simd_neon)(void)
  38. - {
  39. - static int init = 0, res;
  40. -
  41. - if (!init) {
  42. - res = really_have_neon();
  43. - init = 1;
  44. - }
  45. - return res;
  46. - }
  47. -
  48. -
  49. -#else
  50. -/* don't know how to autodetect NEON; assume it is present */
  51. int X(have_simd_neon)(void)
  52. {
  53. return 1;
  54. }
  55. -#endif
  56. #endif