From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Using Log_Float in inline assembler for ARM Date: Fri, 24 Nov 2023 11:43:28 +0100 Organization: A noiseless patient Spider Message-ID: References: <05a0c608-0278-4cce-aa75-a89d2d807ef2n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 24 Nov 2023 10:43:28 -0000 (UTC) Injection-Info: dont-email.me; posting-host="30d7e95422b1ad102f7dc219b610d6ac"; logging-data="2417888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/i0M1F29O6YW7qIKw0ks5B+Q6Cjb4JJ+4=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:5NJpCvg++IonmKv84AW0Vp+G7XE= Content-Language: en-US In-Reply-To: <05a0c608-0278-4cce-aa75-a89d2d807ef2n@googlegroups.com> Xref: news.eternal-september.org comp.lang.ada:65872 List-Id: On 2023-11-24 10:09, Ahlan Marriott wrote: > > subtype T is Long_Float; > > function Unbiased_Rounding (X : T) return T is > Y : T; > begin > Asm (“vrintn.f64 %P0,%P1”, > Outputs => T’asm_output (“=w”, Y), > Inputs => T’asm_input (“w”, X)); > return Y; > end Unbiased_Rounding; What do you get from T'Unbiased_Rounding? -- Jeff Carter "In the frozen land of Nador they were forced to eat Robin's minstrels, and there was much rejoicing." Monty Python & the Holy Grail 70