I use gmplib to get big number and I calculate the numeric value (sum of the digits: `123` -> `6`, `74` -> `11` -> `2`)

Here is what I did :

```
unsigned short getnumericvalue(const char *in_str)
{
    unsigned long number = 0;
    const char *ptr = in_str;

     do {
         if (*ptr != '9') number += (*ptr - '0'); // Exclude '9'
         ptr++;
     } while (*ptr != 0);

     unsigned short reduced = number % 9;

     return reduced == 0 ? 9 : reduced;
}

```

It works well but is there a faster way to do it on a Xeon w-3235?