There are three unnecessary masks in the polyt0_unpack and polyz_unpack functions. These all occur when the last coefficient of a block of coefficients is being unpacked. There is no overflow on this last coefficient, so masking the leading bits has no effect.
This is misleading in the polyz_unpack function, where a copy-paste error seems to have slipped in. At first glance this appears to be a bug in the implementation, until it becomes apparent that masking is not needed for this coefficient.
There are three unnecessary masks in the
polyt0_unpack
andpolyz_unpack
functions. These all occur when the last coefficient of a block of coefficients is being unpacked. There is no overflow on this last coefficient, so masking the leading bits has no effect.This is misleading in the
polyz_unpack
function, where a copy-paste error seems to have slipped in. At first glance this appears to be a bug in the implementation, until it becomes apparent that masking is not needed for this coefficient.