Re: intdiv

new topic     » goto parent     » topic index » view thread      » older message » newer message
bill said...

Manual section 15.2.2 integer range -1,073,741,824 to 1,073,741,823

-1,073,741,824 = -2^30

If this is not MININT then sorry but it is a power of 2.

The powof2() function tests if a number is the result of 2 to some power. There is no 'x' such that 2^x results in a negative number. Thus MININT, a negative number, cannot pass this test.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu