This is good, but I think there should be at least a comment at the bottom of mathoms.c indicating that this data structure needs to be kept updated. Even better would be a porting test.