Partial revert "Remove ioprio_get(2) and ioprio_set(2) from LP64."

Put them back for ARM32. Some pre-L blobs link with it
This partially reverts commit 607341e226912d95d03216483bdcef6f8d96f8b4.

Change-Id: If8503bd5624869ba071fdd21fa48cffb65617586
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
bionic: Add flag to restore legacy mmap behavior

* Pre-lollipop mmap would not care whether offset was signed
  or unsigned.
* Lollipop adds 64-bit support which results in sign extension
  of offset, causing a negative offset when
  a positive offset > 2^31 is given.

Change-Id: I5d19d898fc131cf848217974915d1b466a474f99
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
No Strict Aliasing

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Disable Strict Aliasing on dns too

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Replace Cortex A15 strlen implementation with cortex-strings

Benchmarks on a Nexus 10 have shown this implementation to be 5%-20%
faster (depending on input)

Change-Id: I4331a390c404a77b1e13909d713c4258a3776bca
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Import memchr implementation from cortex-strings for Cortex A15

Benchmarks on a Nexus 10 have shown the cortex-strings implementation
of memchr to be 60%-70% faster (depending on input)

Change-Id: I525587d8663c881e9059b26b19409b0c563b2a18
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Replace memcpy with the cortex-strings implementation

Benchmarks on a Nexus 10 have shown this implementation to be
up to 12% faster.

Change-Id: Ida882cc6a583dfd00c3659b022c26070665824af
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
krait: use A15 memchr

Change-Id: I6d9c773612db02706d5a36252eb7d4458d9b6e1b
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Cleanup arm assembly.

Remove the old arm directives.
Change the non-local labels to .L labels.
Add cfi directives to strcpy.S.

Change-Id: I9bafee1ffe5d85c92d07cfa8a85338cef9759562
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Add stpcpy assembler version.

For generic, continue to use the C version of the code.

Bug: 13746695
Change-Id: I77426a70b06131f2373bb51265bea1240bb3f101
Signed-off-by: Jake Weinstein <xboxlover360@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
libc: denver: use Cortex-A15 Memchr

Change-Id: I6c2dc07ca6faf0c0a3cfe684581ae99b103e41b7
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
libc: Add Scorpion-optimized memcpy and memset

 * Optimized routines from Qualcomm for msm8660 class SoCs
 * Enable with TARGET_CPU_VARIANT := scorpion
 * Use cortex-a15 memcpy and krait memset routines

Change-Id: I01d0f22efba5a418ddd20fca0d0c570d855e0f6f
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
libc: Add memchr for cortex-a53

Change-Id: Id84695006991bb9aaef8ddc127c3bee646948527
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Merge remote-tracking branch 'opti/master' into cm-12.0