The very core of cross() is capable of suffering integer overflow on
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 24 Jul 2005 10:39:33 +0000 (10:39 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 24 Jul 2005 10:39:33 +0000 (10:39 +0000)
commit17c75e705e49eb544a943da69e806725e76cf0c7
treeff2cbf01e9ecd81b38814d05d0b92d025ce47327
parent0d98f76fcfb547a00ba3a7c8d785fa98c02109e0
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.)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6137 cda61777-01e9-0310-a592-d414129be87e
untangle.c