Fixes and optimizations of two quaternion functions.
Fixes and optimizations of two quaternion functions.

Change-Id: Ie5a3f16d49b716d91b6f68fa389473548cecb80d

xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base