svn path=/trunk/yasm/; revision=1683
unsigned long boundint = yasm_intnum_get_uint(boundintn);
/* Alignments must be a power of two. */
- if ((boundint & (boundint - 1)) == 0) {
+ if (is_exp2(boundint)) {
if (boundint > yasm_section_get_align(sect))
yasm_section_set_align(sect, boundint, cur_line);
}
unsigned long boundint = yasm_intnum_get_uint(boundintn);
/* Alignments must be a power of two. */
- if ((boundint & (boundint - 1)) == 0) {
+ if (is_exp2(boundint)) {
if (boundint > yasm_section_get_align(parser_nasm->cur_section))
yasm_section_set_align(parser_nasm->cur_section, boundint,
cur_line);