chiark / gitweb /
The very core of cross() is capable of suffering integer overflow on
authorSimon Tatham <anakin@pobox.com>
Sun, 24 Jul 2005 10:39:33 +0000 (10:39 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 24 Jul 2005 10:39:33 +0000 (10:39 +0000)
commitcc06b70328faf5a9c9806bd1108636f98846cd3b
treeff2cbf01e9ecd81b38814d05d0b92d025ce47327
parent3b5711c6a567bf4d48822b3aa21f2a0080e3aa25
The very core of cross() is capable of suffering integer overflow on
large puzzles. Resort to hand-hacked 64-bit arithmetic for doing dot
products; everything else remains in `long' for the moment.

(Ideally I'd auto-detect the presence of `long long' and use it in
place of my cheap plastic imitation where possible, but since I
currently don't have a configure mechanism that'll have to wait.)

[originally from svn r6137]
untangle.c