Original code:
  Hiroyuki Komatsu <komatsu@taiyaki.org>

Porting to Ruby and C:
  Hiroaki Nakamura <hnakamur@good-day.co.jp>
