my fork of http://dunkels.com/adam/pt/index.html