https://github.com/torvalds/linux
Revision a9bb3ba81fba1750139654360cb716ab093103b0 authored by Mike Marshall on 06 April 2016, 15:19:37 UTC, committed by Mike Marshall on 08 April 2016, 18:08:27 UTC
Suggested by David Binderman <dcb314@hotmail.com>
The former can potentially be a performance win over the latter.

memcpy(d, s, len);
memset(d+len, c, size-len);

memset(d, c, size);
memcpy(d, s, len);

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
1 parent 2d09a2c
History
Tip revision: a9bb3ba81fba1750139654360cb716ab093103b0 authored by Mike Marshall on 06 April 2016, 15:19:37 UTC
Orangefs: optimize boilerplate code.
Tip revision: a9bb3ba
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.4 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 343.6 KB
Makefile -rw-r--r-- 55.0 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top