host: Reorganized some common host code
host: Reorganized some common host code

Moved some min/max static inline's and string to numeric type
conversions to a common host code area.