summaryrefslogtreecommitdiffstats
path: root/fastwriter.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-11-27 02:23:18 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-11-27 02:23:18 +0100
commit83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4 (patch)
tree421e22d765b97b6d4e213578ca59cf4035940123 /fastwriter.c
parentc6db5ea47cdbedd3a17a17984b231e11476bfa97 (diff)
downloadfastwriter-83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4.tar.gz
fastwriter-83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4.tar.bz2
fastwriter-83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4.tar.xz
fastwriter-83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4.zip
Seems new memcpy is only good for ipepdvcompute2, make it optional and disabled by default
Diffstat (limited to 'fastwriter.c')
-rw-r--r--fastwriter.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/fastwriter.c b/fastwriter.c
index c5bf301..08722fa 100644
--- a/fastwriter.c
+++ b/fastwriter.c
@@ -15,11 +15,16 @@
#include <fcntl.h>
-
#include "private.h"
#include "default.h"
#include "sysinfo.h"
-#include "memcpy.h"
+
+#ifdef USE_CUSTOM_MEMCPY
+# include "memcpy.h"
+#else /* USE_CUSTOM_MEMCPY */
+# define fast_memcpy memcpy
+#endif /* USE_CUSTOM_MEMCPY */
+
fastwriter_t *fastwriter_init(const char *fs, fastwriter_flags_t flags) {
fastwriter_t *ctx;