genlib/divider: fix diff computation