File: build_sh4_FE.patch

package info (click to toggle)
scipy 1.15.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 232,648 kB
  • sloc: cpp: 497,140; python: 327,782; ansic: 190,592; javascript: 89,553; fortran: 59,012; cs: 3,081; f90: 1,150; sh: 839; makefile: 780; pascal: 277; csh: 135; lisp: 134; xml: 56; perl: 51
file content (17 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (3)
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 */