Bug fix for previous commit
Add portable function for arthmetic operation
Support portable function for divde