Revert "libc: Add NEON optimized memmove"

This reverts commit e1154df8806b65a7706e1ba3e7b2a9f0fe2f32d0.

Revert "libc: Optimize strcat/strcpy, small tweaks to strlen"

This reverts commit dd2150b68a0e00d130bcf9b3b4af68a93971ae00.

Revert "libc: Update to latest cortexa15 memcpy code."

This reverts commit 392d2cd535185b4013ae7279587aaae3972737d1.

Revert "Bionic: Add AOSP master cortex optimizations"

This reverts commit 456c0e8cbe4ed2da25317e8e46ed327a14fbeb1c.

Revert "libc: krait: Restore prior version of strcmp."

This reverts commit d22231e03e36a34a149a90d2c01d867d62932f7f.

Revert "libc: krait: Use performance version of memcpy."

This reverts commit cc8a530aba0f1b616becbc0bbd40501f082d411f.

Revert "libc: krait: Use performance version of bcopy and memmove"

This reverts commit 9ef0a0f6002a3c0e0bcfa2b329811d9b3b8a534b.

Revert "tegra2: add missing strcpy and strcat"

This reverts commit 31a06f332f1176ae8e2a241dcae00f78112a3b2a.

Revert "libc: add tegra2 TARGET_CPU_VARIANT"

This reverts commit 4172806c7ee309fa78e20bb03313d0e8bc6bde0e.

Revert "Detect userspace memory leak for JB_MR2"

This reverts commit bba493121c8e135bd9cd145ab35e53cac1702a9e.

Revert "[libc] Add missing strcat.S to x86.mk Makefile"

This reverts commit b59b790f97dc58a931719524499269f2f3b904f2.

Revert "armv6: REX routines are currently broken, use alternatives"

This reverts commit 364c9574c789b046423f25903c9c2f36c1a32d01.

Revert "Bump the number of TLS slots to 128."

This reverts commit 5bce86fd740e13f4f6a55092d159af0200c46e72.

Revert "don't hardcode register r0/v1 when reading the TLS"

This reverts commit fb0f92fa912480e381c4a96ddd561e2360d6e1ca.
Merge tag 'android-4.4_r1' into cm-11.0

Android 4.4 Release 1.0

Conflicts:
	libc/arch-arm/arm.mk
	libc/upstream-freebsd/lib/libc/stdlib/getopt_long.c
	linker/linker_phdr.cpp
bionic: Fix aliasing violations

This makes bionic compile with compilers enforcing
strict adherence to aliasing rules (e.g. gcc 4.6+
with -Wstrict-aliasing=2 -Werror=strict-aliasing).

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
bionic:Add new header files for graphics

The header files "hwmem.h" and "b2r2_blt.h" are needed
by the ST-Ericsson graphics implementation.

Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
bionic: Add ARMv7 optimized string handling routines

Add ARMv7 - and especially Cortex-A9 - optimized string handling
routines based on the versions found in the cortex-strings library.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Add workarounds for current compilers

With current compilers, we're getting "this function cannot be inlined"
errors on vsnprintf and strlcpy because the always_inline attribute is
set.

Before marking this a "fix" instead of a "workaround", we should figure
out why the functions can't be inlined.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Make use of new memcpy, tweak settings

MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The new memcpy() is slightly faster than the cortex-strings version,
and fixes the Galaxy Nexus camera issue.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
bionic: Add Cortex-A15 optimized version of memcpy

MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Add the memcpy implementation from cortex-strings -- faster than
the current implementation on both A9 and A15.

To be investigated: Breaks saving pictures from the camera in
Galaxy Nexus builds

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
remove typos and multiple declarations

Change-Id: Iff32874c2f801519b57f19a3cc1c2c76b7c7f6fa
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
revert cortex string optimization routines for now

Change-Id: I410bdef93efd51277b494bde0300a01c49e926f7
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Add optimized sincos() function (ported from linaro_android_4.2.2)

Change-Id: I77f84d7ebc2dd7d5aa352b108b05e2651b5605c1
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Declare __page_shift and __page_size with C linkage

__page_shift and __page_size are defined in asm/page.h with
C linkage - their implementation needs to use the same linkage.

The different linkage types cause a compiler error with clang.
Fixing them seems to be a good idea regardless of the compiler.

Change-Id: I35ed66a08989ced1db422eb03e4d154a5d6b5bda
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Fix mismatch between declaration and forward declaration

KernelArgumentBlock is defined as a class in KernelArgumentBlock.h, but
forward declarations refer to it as a struct.

While this is essentially the same, the mismatch causes a compiler
warning in clang (and may cause warnings in future versions of gcc) in
code that is supposed to be compiled with -Werror.

Change-Id: I4ba49d364c44d0a42c276aff3a8098300dbdcdf0
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Fix build after 4.4 merge

Change-Id: I9b5eb314746ebadfced2f4a055a8e1306ca9e4ec
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Don't include memchr.c twice

Change-Id: I663a934dd4c8e7e87e8d018c878b3c4d04b0b914
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>