CompuServe Messages

32 divide

    28-Jan-93 16:36:40
Sb: #31706-32 divide
Fm: Shraddhan 70374,754
To: Greg Marquez 71777,2612
Richard, I think you'll find my code to be OK, but I haven't tested it as thoroughly as I would do if I were using it myself. As for any good 680×0 books, I've given up looking. There's so much junk out there that my legs can't stand the strain any more in bookshops 😉 Maybe I can express that better – the books I have come across haven't contained the kind of information for which I would pay out the asking price, and besides, I've got a serious problem with shelf space here. Also, the snag is that the problems we try to solve are more specific than would be suitable for a general book. If I understood your problem correctly, you wanted to divide a 32 bit number by a 16 bit number and have a 32 bit result. I think that this problem is rather specialised – an author would be more inclined to show how do divide by a 32 bit number, not a 16 bit number, and give you the remainder too. So you would have to simplify the author's code if you wanted to maximise its speed. I must say though that I have often wished I had a cookbook of algorithms I could dip into and lift out code I could use directly. Regards, Shraddhan – via Whap! from Hertfordshire in the UK