The code in this directory and below are taken from numpy/core/src/npymath
and numpy/core/src/umath from NumPy 9/11/2012,
git hash: 75b8119f8145ab08a436ecfd7de868c6c6ba8f6d