new fifo_empty calculation.

Related git tag:
   imageon 674a058709b12cf28fb70afc4cc5868d6ca0a04a