life speed wrote: > I need to improve on the speed of some > arbitrary-precision division and multiplication > routines written for the CCS (CCSinfo.com) compiler in > C code for the PIC18F8722. > > I would like to find a 64/64 bit or 64/48 bit fixed or > floating point division routine in assembly for the > PIC. I also require 48 bit multiplication. So far I > have not had much luck in my search. Does anybody > know if such a routine has been written? I require a > great deal of precision in my application. I am a > hardware engineer, assembly language is not my > specialty, so I would prefer not to reinvent the wheel > if possible. The Matlab equations I must perform on > the PIC are attached. Which don't contain any description or comments so are pointless to try and follow. What part of your calculations must be done at run time versus computed up front at assembly time? Do you really need 64 bits of precision (hard to imagine why) or just the dynamic range? If so, floating point may be easier than very wide integer or fixed point arithmetic. Step back and explain what you are trying to accomplish at a higher level. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist