{
unsigned msbs, uval;
- /* convert signed to unsigned */
+ /* fold signed to unsigned */
if(val < 0)
/* equivalent to
* (unsigned)(((--val) << 1) - 1);
- * but without the overflow problem at -MAXINT
+ * but without the overflow problem at MININT
*/
uval = (unsigned)(((-(++val)) << 1) + 1);
else
FLAC__ASSERT(parameter > 0);
- /* convert signed to unsigned */
+ /* fold signed to unsigned */
if(val < 0)
/* equivalent to
* (unsigned)(((--val) << 1) - 1);
- * but without the overflow problem at -MAXINT
+ * but without the overflow problem at MININT
*/
uval = (unsigned)(((-(++val)) << 1) + 1);
else
FLAC__ASSERT(bb->buffer != 0);
FLAC__ASSERT(parameter <= 30);
- /* convert signed to unsigned */
+ /* fold signed to unsigned */
if(val < 0)
/* equivalent to
* (unsigned)(((--val) << 1) - 1);
- * but without the overflow problem at -MAXINT
+ * but without the overflow problem at MININT
*/
uval = (unsigned)(((-(++val)) << 1) + 1);
else
*overflow = false;
- /* convert signed to unsigned */
+ /* fold signed to unsigned */
if(val < 0)
/* equivalent to
* (unsigned)(((--val) << 1) - 1);
- * but without the overflow problem at -MAXINT
+ * but without the overflow problem at MININT
*/
uval = (unsigned)(((-(++val)) << 1) + 1);
else
FLAC__ASSERT(bb->buffer != 0);
FLAC__ASSERT(parameter > 0);
- /* convert signed to unsigned */
+ /* fold signed to unsigned */
if(val < 0)
/* equivalent to
* (unsigned)(((--val) << 1) - 1);
- * but without the overflow problem at -MAXINT
+ * but without the overflow problem at MININT
*/
uval = (unsigned)(((-(++val)) << 1) + 1);
else