summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--0d538227be3d9ff16e4af886cc6ab015380deefd.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/0d538227be3d9ff16e4af886cc6ab015380deefd.patch b/0d538227be3d9ff16e4af886cc6ab015380deefd.patch
new file mode 100644
index 0000000..2484e1d
--- /dev/null
+++ b/0d538227be3d9ff16e4af886cc6ab015380deefd.patch
@@ -0,0 +1,40 @@
+From 0d538227be3d9ff16e4af886cc6ab015380deefd Mon Sep 17 00:00:00 2001
+From: guoxinhua <guoxinhua@10.10.12.142>
+Date: Sat, 27 May 2017 14:57:41 +0800
+Subject: [PATCH] add sse test
+
+---
+ swoole_serialize.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/swoole_serialize.c b/swoole_serialize.c
+index ceeccc88..5fc48617 100644
+--- a/swoole_serialize.c
++++ b/swoole_serialize.c
+@@ -16,7 +16,9 @@
+
+ #include "php_swoole.h"
+ #include "swoole_serialize.h"
++#ifdef __SSE2__
+ #include <emmintrin.h>
++#endif
+
+ #if PHP_MAJOR_VERSION >= 7
+ #define CPINLINE sw_inline
+@@ -101,7 +103,7 @@ static CPINLINE void swoole_check_size(seriaString *str, size_t len)
+ str->total = new_size;
+ }
+ }
+-
++#ifdef __SSE2__
+ void CPINLINE swoole_mini_memcpy(void *dst, const void *src, size_t len)
+ {
+ register unsigned char *dd = (unsigned char*) dst + len;
+@@ -255,6 +257,7 @@ void CPINLINE swoole_memcpy_fast(void *destination, const void *source, size_t s
+
+ // return memcpy_tiny(dst, src, size);
+ }
++#endif
+
+ static CPINLINE void swoole_string_cpy(seriaString *str, void *mem, size_t len)
+ {