modify WELS_CLIP1 to be inline functions
remove unncessary cast
Merge pull request #532 from huili2/WELS_CLIP1

Modify MACRO WELS_CLIP1 as inline functions