libutils: Fix type error in Unicode's utf8_length() method.

For Chinese characters, its codes would be larger than 128. So if use
signed char variable to hold these codes, they would be treated as
negative. That may cause some unexpected error.

Take character code 0xE69C88 for example. In this method, first_char
would be 0xE6, when we calculating value utf32 in statement
utf32 |= ((~to_ignore_mask) & first_char) << (6 * (num_to_read - 1));
first_char will be converted to int32_t type. If first_char was define
as singed char, it will be converted to 0xffffffe6, this lead to an
error fo utf32 calculating.

Change-Id: Icf61a898a2a38b8492da0a7ab759e01c15a2d125
Author: Liang Wang <liangx.wang@intel.com>
Signed-off-by: Liang Wang <liangx.wang@intel.com>
Signed-off-by: Bing Deng <bingx.deng@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 41014
Add fast TLS forwarders support on x86 to EGL.

These changes fixes support for EGL extensions on underlying drivers.

The code is mostly done by Intel and released in their own repository at
01.org. The repository could be found at
https://android-review.01.org/platform/frameworks/native:

 2a5c9231eb7577d3491403a34c2d37fee12d79d3
 76df8dc3defe7c13eee391d0cb5a80cbb39be1be
 092cb32504ef097f08a10ac6ff429fbddf2c8420

Additional this enables USE_FAST_TLS_KEY on x86 by default.

Signed-off-by: Christian Poetzsch <christian.potzsch@imgtec.com>

Change-Id: I84c3cb95a3a3b79eb5b8b15c2ef4ec45032d5fb5
Merge "libutils: Fix type error in Unicode's utf8_length() method." into jb42
Merge "Add fast TLS forwarders support on x86 to EGL." into jb42