rpnesil.c: replace the masks array by an inline function

This should save around half a kilobyte in exectuable size and may or
may not be more readable.