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>