calcsims16 improved.
uint16_t instead of short.