Re:Android Project Changeset 4f8b683: libc/memset.c
by neilc on Tuesday May 25, 2010 @08:45PM
(#1379166)
Given that it is in "platform/bootable/bootloader/legacy", I'm not sure there is much point getting all worked up about performance -- presumably something much more efficient would be used for the vast majority of cases.
[ Parent
| on HN ]
Re:Android Project Changeset 4f8b683: libc/memset.c
by joezydeco on Tuesday May 25, 2010 @10:19PM
(#1379322)
I haven't updated my source tree in a long time, but the ARM devices were using bionic/libc/arch-arm/bionic/memset.S. This is pure ARM assembly optimized for the pipeline and cache.
My ARM assembly is a little rusty, but it looks like they implement memset and bzero, the latter just calling memset with R1=0.