Add inline funtion to comput format size based on code in st_format.c.