Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: How to avoid an overflow during multiplication? Date: Sat, 29 Jan 2022 04:54:45 -0800 Organization: A noiseless patient Spider Lines: 31 Message-ID: <86ee4qn1m2.fsf@linuxsc.com> References: <86v8ydp57h.fsf@linuxsc.com> <9_BGJ.170561$X2_b.72894@fx09.ams4> <86mtjopoq5.fsf@linuxsc.com> <86v8y9m8ba.fsf@linuxsc.com> <86r18xlyqk.fsf@linuxsc.com> <_YFHJ.874$dV.864@fx44.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="8a9fc8cdb13989d258a574a29792b8b1"; logging-data="5862"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198op/MRbkO7cMPF1znpUdCPpvnkRQyJ4Q=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:R3EWUTsoreeb7SDh4pavYh/Eqjg= sha1:5MD6pXxeJyFkgU2OCcgE0QUGx0k= Xref: csiph.com comp.lang.c:164713 scott@slp53.sl.home (Scott Lurndal) writes: > Tim Rentsch writes: > >> scott@slp53.sl.home (Scott Lurndal) writes: >> >>> scott@slp53.sl.home (Scott Lurndal) writes: >>> >>>> Tim Rentsch writes: >>>> >>>>> scott@slp53.sl.home (Scott Lurndal) writes: >>>>> >>>>> Surely you can find some example that wouldn't go against your >>>>> existing agreements. >>> >>> Ok, a long C function: [...] >> >> Good, thank you for tracking down what looks like a good >> example. >> >> Before I look any further, are there any particular aspects >> you would say are important to pay attention to or that >> contribute to difficulty in refactoring? > > Not really, other than that I believe this was derived > from BSD at one point. > > Here's the helpers: [...] I got these, thank you. Additional comments in a followup to your posting elsethread.