GPU Calc: refactor code generation for inlined library routines

Refactored all  library functions of now formule calc in GPU

Change-Id: Icf238c18cae5ca2b685a99204994f5d3211b3ac9
Signed-off-by: haochen <haochen@multicorewareinc.com>
Signed-off-by: I-Jui (Ray) Sung <ray@multicorewareinc.com>
GPU Calc: fixed a compiler warning

Change-Id: Ia468731911f4b492b85ede63a9646fe28ca63cd8