Package: pd-iemlib / 1.22.1-1

denormal-defines.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: provide IEM_DENORMAL_D fallbacks for non x86/amd64
Author: IOhannes m zmölnig
Origin: upstream
Applied-Upstream: 393080020354fc7175e2447ccb9f895a33a3cd84
Last-Update: 2020-02-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pd-iemlib.orig/include/iemlib.h
+++ pd-iemlib/include/iemlib.h
@@ -62,7 +62,7 @@
 
 
 #ifndef _MSC_VER /* Microoft compiler can't handle "inline" function/macros */
-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
+#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)
 /* a test for NANs and denormals.  Should only be necessary on i386. */
 
 static inline int IEM_DENORMAL_F(float f)  /* malformed float 32 */
@@ -116,6 +116,7 @@
 #endif /* PD_FLOATSIZE */
 #else /* not INTEL or ARM */
 #define IEM_DENORMAL_T(f) 0
+#define IEM_DENORMAL_D(f) 0
 #endif
 
 #else   /* _MSC_VER */