Code for removing strict aliasing

Change-Id: I1b6e2365d95357a0ef66796fda692077a6738399
Signed-off-by: zwliew <zhaoweiliew@gmail.com>