[med-svn] [Git][med-team/libssw][simde] patch from upstream SIMDE for SH4

Michael R. Crusoe gitlab at salsa.debian.org
Fri Dec 13 07:26:36 GMT 2019



Michael R. Crusoe pushed to branch simde at Debian Med / libssw


Commits:
a2065be3 by Michael R. Crusoe at 2019-12-13T07:12:56Z
patch from upstream SIMDE for SH4

- - - - -


2 changed files:

- debian/changelog
- debian/include/simde/x86/sse.h


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+libssw (1.1-6~0expsimde1) experimental; urgency=medium
+
+  * Include patch from upstream SIMDE for SH4
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com>  Fri, 13 Dec 2019 08:12:10 +0100
+
 libssw (1.1-6~0expsimde0) experimental; urgency=medium
 
   * Enable for all architectures using simde


=====================================
debian/include/simde/x86/sse.h
=====================================
@@ -68,8 +68,13 @@
 #    endif
 #  endif
 
+#if !defined(__cplusplus)
 #  include <math.h>
 #  include <fenv.h>
+#else
+#  include <cmath>
+#  include <cfenv>
+#endif
 
 HEDLEY_DIAGNOSTIC_PUSH
 #  if HEDLEY_HAS_WARNING("-Wfloat-equal")
@@ -2901,17 +2906,25 @@ simde_mm_getcsr (void) {
   int rounding_mode = fegetround();
 
   switch(rounding_mode) {
+#if defined(FE_TONEAREST)
     case FE_TONEAREST:
       break;
+#endif
+#if defined(FE_UPWARD)
     case FE_UPWARD:
       r |= 2 << 13;
       break;
+#endif
+#if defined(FE_DOWNWARD)
     case FE_DOWNWARD:
       r |= 1 << 13;
       break;
+#endif
+#if defined(FE_TOWARDZERO)
     case FE_TOWARDZERO:
       r = 3 << 13;
       break;
+#endif
   }
 
   return r;
@@ -2928,18 +2941,26 @@ simde_mm_setcsr (uint32_t a) {
   _mm_setcsr(a);
 #else
   switch((a >> 13) & 3) {
+#if defined(FE_TONEAREST)
     case 0:
       fesetround(FE_TONEAREST);
+#endif
+#if defined(FE_DOWNWARD)
       break;
     case 1:
       fesetround(FE_DOWNWARD);
+#endif
+#if defined(FE_UPWARD)
       break;
     case 2:
       fesetround(FE_UPWARD);
+#endif
+#if defined(FE_TOWARDZERO)
       break;
     case 3:
       fesetround(FE_TOWARDZERO);
       break;
+#endif
   }
 #endif
 }



View it on GitLab: https://salsa.debian.org/med-team/libssw/commit/a2065be31700acf78bf0130f68ced152cb48e287

-- 
View it on GitLab: https://salsa.debian.org/med-team/libssw/commit/a2065be31700acf78bf0130f68ced152cb48e287
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191213/744d62eb/attachment-0001.html>


More information about the debian-med-commit mailing list