File: build_sh4_FE.patch

package info (click to toggle)
scipy 1.16.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 234,868 kB
  • sloc: cpp: 503,162; python: 344,795; ansic: 195,670; javascript: 89,566; fortran: 56,210; cs: 3,081; f90: 1,150; sh: 855; makefile: 788; pascal: 284; csh: 135; lisp: 134; xml: 56; perl: 51
file content (17 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: scipy/scipy/special/_round.h
===================================================================
--- scipy.orig/scipy/special/_round.h	2025-01-16 15:19:54.008128507 +0100
+++ scipy/scipy/special/_round.h	2025-01-16 15:19:54.008128507 +0100
@@ -84,5 +84,12 @@
 
 #endif
 
+/* SH4 is not C99 compliant, see https://github.com/scipy/scipy/issues/15584 */
+#ifndef FE_UPWARD
+#define FE_UPWARD -1
+#endif
+#ifndef FE_DOWNWARD
+#define FE_DOWNWARD -1
+#endif
 
 #endif /* _round.h */