port to lines-of-code cell array
log2, log10d: use uniop_helper