Add bionic support to endian.h
am: 0b3ea84b83

Change-Id: I3c7446a4b1cee2a3ba9d30a4b64147731202b87c