[GRASS-dev] r.mapcalc 32-bit ceiling

Andy Wickert andrewwickert at gmail.com
Sat Nov 26 22:57:14 EST 2011

> There can be a significant performance hit for doing this. Checking
> whether the result of an addition overflowed is actually more
> expensive than the addition itself. Checking whether a multiplication
> overflowed can be even worse (particularly if you don't have a 64-bit
> integer type available).
> --
> Glynn Clements <glynn at gclements.plus.com>

Hm. If that's a debilitating issue, perhaps the overflow check could
be triggered by a flag (e.g., if the user thinks there may be a
problem) or (easier) some information on typing and overflow could be
placed on the man page.


More information about the grass-dev mailing list