Commit 90a30f154a612693641e5366ea8d1d27ea2a4a99

Alexei Podtelezhnikov 2019-10-10T22:04:50

* src/sfnt/pngshim.c (premultiply_data): Optimize for __SSE__ only.

diff --git a/ChangeLog b/ChangeLog
index ba34606..1b7dc03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-10-10  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/sfnt/pngshim.c (premultiply_data): Optimize for __SSE__ only.
+
 2019-10-10  Werner Lemberg  <wl@gnu.org>
 
 	* src/sfnt/sfwoff2.c (reconstruct_glyf): Check `triplet_size'.
diff --git a/src/sfnt/pngshim.c b/src/sfnt/pngshim.c
index ca85d97..5f80ac2 100644
--- a/src/sfnt/pngshim.c
+++ b/src/sfnt/pngshim.c
@@ -68,6 +68,7 @@
         ( ( __clang_major__ >= 4 )                               ||       \
         ( ( __clang_major__ == 3 ) && ( __clang_minor__ >= 2 ) ) ) ) ) && \
     defined( __OPTIMIZE__ )                                            && \
+    defined( __SSE__ )                                                 && \
     __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 
 #ifdef __clang__