We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e429fea commit e950708Copy full SHA for e950708
src/allocator.h
@@ -38,13 +38,13 @@ namespace ncnn {
38
#elif NCNN_AVX
39
#define NCNN_MALLOC_ALIGN 32
40
#else
41
-#define NCNN_MALLOC_ALIGN 16
+#define NCNN_MALLOC_ALIGN 128
42
#endif
43
44
// we have some optimized kernels that may overread buffer a bit in loop
45
// it is common to interleave next-loop data load with arithmetic instructions
46
// allocating more bytes keeps us safe from SEGV_ACCERR failure
47
-#define NCNN_MALLOC_OVERREAD 64
+#define NCNN_MALLOC_OVERREAD 512
48
49
// Aligns a pointer to the specified number of bytes
50
// ptr Aligned pointer
0 commit comments