---- START NEW MESSAGE --- Received: from cherry.ease.lsoft.com [209.119.0.109] by dpmail10.doteasy.com with ESMTP (SMTPD32-8.05) id AF8816E0276; Sat, 31 Jan 2004 01:04:08 -0800 Received: from PEAR.EASE.LSOFT.COM (209.119.0.19) by cherry.ease.lsoft.com (LSMTP for Digital Unix v1.1b) with SMTP id <19.00CC61A0@cherry.ease.lsoft.com>; Sat, 31 Jan 2004 4:03:54 -0500 Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release 1.8e) with spool id 4603 for PICLIST@MITVMA.MIT.EDU; Sat, 31 Jan 2004 04:03:40 -0500 Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 4303; Sat, 31 Jan 2004 04:03:32 -0500 Received: from smtp-out1.xs4all.nl [194.109.24.11] by mitvma.mit.edu (IBM VM SMTP Level 430) via TCP with ESMTP ; Sat, 31 Jan 2004 04:03:31 EST X-Comment: mitvma.mit.edu: Mail was sent by smtp-out1.xs4all.nl Received: from PAARD (a213-84-20-53.adsl.xs4all.nl [213.84.20.53]) by smtp-out1.xs4all.nl (8.12.10/8.12.10) with ESMTP id i0V93XMT093060 for ; Sat, 31 Jan 2004 10:03:33 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Message-ID: <000001c3e7d9$1ca48790$0b00a8c0@PAARD> Date: Sat, 31 Jan 2004 10:03:36 +0100 Reply-To: pic microcontroller discussion list Sender: pic microcontroller discussion list From: Wouter van Ooijen Organization: Van Ooijen Technische Informatica Subject: Re: [PIC:] divide by 10 question To: PICLIST@MITVMA.MIT.EDU In-Reply-To: <68D82FF0-5395-11D8-9E8E-000A95E5DF26@mac.com> Precedence: list X-RCPT-TO: Status: U X-UIDL: 371856654 > At some point, it seems simpler to implement a general purpose > divide function. I was a bit shocked that the JAL compiler's > idea of division is a repeated subtraction loop Before everyone thinks Jal can not do otherwise: one of the things the GPL-Jal maintainers did was to separate the run-time functions into a separate file so the user can change the implementation of *, / and %. So if you don't like repeated substraction have it your way (or maybe it has already been changed - check the latest sourceforge Jal distribution). Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu .