From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b3e361752e757bb8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.39.75 with SMTP id f11mr543736qae.0.1350637759189; Fri, 19 Oct 2012 02:09:19 -0700 (PDT) Received: by 10.52.175.73 with SMTP id by9mr49668vdc.1.1350637759163; Fri, 19 Oct 2012 02:09:19 -0700 (PDT) Path: r17ni43198318qap.0!nntp.google.com!x14no948983qar.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 19 Oct 2012 02:09:19 -0700 (PDT) In-Reply-To: <96d9c28c-f199-4c24-b04d-fd565b024bd3@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.7.81.220; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.7.81.220 References: <422cd822-6d9a-4909-9009-995d845180b8@googlegroups.com> <422cd822-6d9a-4909-9009-995d845180b8@googlegroups.com> <96d9c28c-f199-4c24-b04d-fd565b024bd3@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Fixed Point number mul, is it a bug? From: AdaMagica Injection-Date: Fri, 19 Oct 2012 09:09:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-10-19T02:09:19-07:00 List-Id: On Thursday, October 18, 2012 4:49:47 PM UTC+2, Adam Beneschan wrote: > To elaborate a bit, the RM says that the 'Small of the type *must* be a p= ower of two if not specified (3.5.9(8)). The 'Small has to be no greater t= han the specified delta, and most compilers would choose the largest power = of 2 that is <=3D the delta. (This applies only to ordinary fixed-point ty= pes, not those with "digits" in the declaration.) Shark8 showed how you ca= n specify the 'Small, although that isn't completely portable because it's = allowable for compilers not to let you specify a 'Small that isn't a power = of 2 (3.5.9(21)). =20 > -- Adam To elaborate on this: Adam is of course right, but I doubt that any compile= r that has decimal fixed points will reject the specification of a small th= at is a power of ten.