e4df2d5e85
Try to access RAM with the largest bit width possible, but without doing unaligned accesses. A further improvement could be to use multiple read and writes as the assembly version was trying to do. Tested on a BeagleV Starlight with a SiFive U74 core, where the improvement is noticeable. Signed-off-by: Matteo Croce <mcroce@microsoft.com> Co-developed-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
15 lines
342 B
C
15 lines
342 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
|
|
|
|
#include <linux/module.h>
|
|
|
|
#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_STRING_OPS
|
|
EXPORT_SYMBOL(memcpy);
|
|
EXPORT_SYMBOL(memset);
|
|
EXPORT_SYMBOL(memmove);
|
|
#endif
|
|
EXPORT_SYMBOL(memcmp);
|
|
EXPORT_SYMBOL(strcmp);
|
|
EXPORT_SYMBOL(strcpy);
|
|
EXPORT_SYMBOL(strlen);
|