Skip to content

Commit e950708

Browse files
authored
Update allocator.h
1 parent e429fea commit e950708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/allocator.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ namespace ncnn {
3838
#elif NCNN_AVX
3939
#define NCNN_MALLOC_ALIGN 32
4040
#else
41-
#define NCNN_MALLOC_ALIGN 16
41+
#define NCNN_MALLOC_ALIGN 128
4242
#endif
4343

4444
// we have some optimized kernels that may overread buffer a bit in loop
4545
// it is common to interleave next-loop data load with arithmetic instructions
4646
// allocating more bytes keeps us safe from SEGV_ACCERR failure
47-
#define NCNN_MALLOC_OVERREAD 64
47+
#define NCNN_MALLOC_OVERREAD 512
4848

4949
// Aligns a pointer to the specified number of bytes
5050
// ptr Aligned pointer

0 commit comments

Comments
 (0)