- 20 Mar, 2013 1 commit
-
-
Christopher Ferris authored
This uses the new strcmp.a15.S code as the basis for new versions of strcmp.S. The cortex-a15 code is the performance optimized version of strcmp.a15.S taken with only the addition of a few pld instructions. The cortex-a9 code is the same as the cortex-a15 code except that the unaligned strcmp code was taken from the original strcmp.S. The krait code is the same as the cortex-a15 code except that one path in the unaligned strcmp code was taken from the original strcmp.S code (the 2 byte overlap case). The generic code is the original unmodified strmp.S from the bionic subdirectory. All three new versions underwent these test cases: Strings the same, all same size: - Both pointers double word aligned. - One pointer double word aligned, one pointer word aligned. - Both pointers word aligned. - One pointer double word aligned, one pointer 1 off a word alignment. - One pointer double word aligned, one pointer 2 off a word alignment. - One pointer double word aligned, one pointer 3 off a word alignment. - One pointer word aligned, one pointer 1 off a word alignment. - One pointer word aligned, one pointer 2 off a word alignment. - One pointer word aligned, one pointer 3 off a word alignment. For all cases where it made sense, the two pointers were also tested swapped. Different strings, all same size: - Single difference at double word boundary. - Single difference at word boudary. - Single difference at 1 off a word alignment. - Single difference at 2 off a word alignment. - Single difference at 3 off a word alignment. Different sized strings, strings the same until the end: - Shorter string ends on a double word boundary. - Shorter string ends on word boundary. - Shorter string ends at 1 off a word boundary. - Shorter string ends at 2 off a word boundary. - Shorter string ends at 3 off a word boundary. For all different cases, run them through the same pointer alignment cases when the strings are the same size. For all cases the two pointers were also tested swapped. Bug: 8005082 Merge from internal master. (cherry-picked from commit a9a5870d) Change-Id: I4c2b98f8a50804fb98ab67f75e9d660f1315a144
-
- 15 Mar, 2013 6 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
A mangled symbol in libc.so is a symbol that shouldn't be exported by libc.so. Change-Id: Id92d1e1968b3d11d111a5d9ef692adb1ac7694a1
-
Elliott Hughes authored
-
Elliott Hughes authored
We only need one logging API, and I prefer the one that does no allocation and is thus safe to use in any context. Also use O_CLOEXEC when opening the /dev/log files. Move everything logging-related into one header file. Change-Id: Ic1e3ea8e9b910dc29df351bff6c0aa4db26fbb58
-
Elliott Hughes authored
-
Elliott Hughes authored
HTC's RIL uses the liblog logging, not ours. Change-Id: I56f9304e833ccb329df4ee55042012d7ad5f73ed
-
- 14 Mar, 2013 6 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: 8391426 Change-Id: Ia4a8889b5a613aa96bb3fb5d89a921c913ff7626
-
Christopher Ferris authored
-
Christopher Ferris authored
The defines HAVE_32_BYTE_CACHE_LINES and ARCH_ARM_USE_NON_NEON_MEMCPY are not used by any code. The previous memcpy code that used these has been split into different architecture versions to avoid the need for them. Bug: 8005082 Merge from internal master. (cherry-picked from commit 6e1a5cf3) Change-Id: Ib18fc3f4131b21cdbd19b9dde7697ac25d066fcf
-
Elliott Hughes authored
-
Elliott Hughes authored
In the old code, the index was a file to itself, so it made sense to read until you hit the end of the file. In the new code, the index is followed by hundreds of KiB of data, so we need to just search the index. Bug: 8368791 Change-Id: Icf5f8b5516cf3a93679fa849c9f6cd1cb100e0f1
-
- 12 Mar, 2013 10 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: http://code.google.com/p/android/issues/detail?id=53104 Change-Id: Iaabf7025b153e96dc5eca231a33a32d4cb7d8116
-
Christopher Ferris authored
-
Christopher Ferris authored
Move arch specific code for arm, mips, x86 into separate makefiles. In addition, add different arm cpu versions of memcpy/memset. Bug: 8005082 Merge from internal master (acdde8c1). Change-Id: I04f3d0715104fab618e1abf7cf8f7eec9bec79df
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: http://code.google.com/p/android/issues/detail?id=53104 Change-Id: Ic6c40be2dc50f0644a3d8b09ceae59c38f2d5b53
-
Elliott Hughes authored
-
Elliott Hughes authored
Still chipping away at the situation where every variable in the linker was of type 'unsigned'. This patch switches counts over to being size_t and adds an explicit type for init/fini function pointers and arrays of function pointers. Also improve logging from CallArray. Also remove trailing "\n"s from log messages. Change-Id: Ie036d2622caac50f4d29f0570888bb527661d77e
-
Elliott Hughes authored
-
Kito Cheng authored
Change-Id: I52dcbb4b0ff0a4052e0ad7a9bbeb2df65c9d2f66
-
- 11 Mar, 2013 5 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
Normally, the C library implicitly caches your timezone by virtue of the fact that the prehistoric API assumes a single timezone for the entire process. The unfortunate mktime_tz and localtime_tz extensions work around this, but represent timezones as strings to their callers, so code that makes heavy use of these needs a cache to be able to perform acceptably until it can hopefully one day be rewritten to use java.util.Calendar or icu4c. Bug: 8270865 Change-Id: I92e3964e86dc33ceac925f819cc5e26ff4203f50
-
Elliott Hughes authored
-
Elliott Hughes authored
-
Elliott Hughes authored
From the release notes: Changes affecting current and future time stamps: Haiti uses US daylight-saving rules this year, and presumably future years. This changes time stamps starting today. (Thanks to Steffen Thorsen.) Paraguay will end DST on March 24 this year. (Thanks to Steffen Thorsen.) For now, assume it's just this year. Morocco does not observe DST during Ramadan; try to predict Ramadan in Morocco as best we can. (Thanks to Erik Homoet for the heads-up.) Change-Id: I98d5290ea5a1d9fb1eeddab1c9e72135dc9e4bd1
-
- 08 Mar, 2013 1 commit
-
-
Elliott Hughes authored
Bug: 8253769 Change-Id: I50c7cc20828fc089b83580e039ce9153a6c5a8cc
-
- 07 Mar, 2013 2 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
Also clean up some obsolete cruft. Change-Id: Iec3b36f6607f7a08b72de99294ed5b6cd910dd5f
-
- 06 Mar, 2013 9 commits
-
-
Elliott Hughes authored
-
Elliott Hughes authored
This gets us back to using vfork now our ARM vfork assembler stub is fixed, and adds the missing thread safety for the 'pidlist'. Bug: 5335385 Change-Id: Ib08bfa65b2cb9fa695717aae629ea14816bf988d
-
Brian Carlstrom authored
-
Brian Carlstrom authored
(cherry-pick of 138b205ea9efc117fe522c2d7191378023a6e2cd) Change-Id: Ia895cb3018df55554627f1f61dcdfdada4a961ce
-
Elliott Hughes authored
-
Elliott Hughes authored
This was broken by the change to use AT_RANDOM for the stack guards. Bug: 7959813 Bug: 8330764 Change-Id: I791900092b72a9a900f16585237fa7ad82aaed9f
-
Elliott Hughes authored
-
Kito Cheng authored
Change-Id: I6432ac378816da253b83d1c7fb1d3fb64647b89e
-
Brian Carlstrom authored
-