delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/30/17:15:12

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Bob Doherty <rdoherty AT clark DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why does it is rounding the result ?
Message-ID: <f6pg5u8rn0kmisg8s8ebl5rnlfsnkn13l3@4ax.com>
References: <002001c1a98f$d99f5580$19e0a0c8 AT rjo DOT virtua DOT com DOT br> <a38tm1$sht$1 AT suaar1ab DOT prod DOT compuserve DOT com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Lines: 33
Date: Wed, 30 Jan 2002 21:28:58 GMT
NNTP-Posting-Host: 165.247.113.186
X-Complaints-To: abuse AT verio DOT net
X-Trace: sjc-read.news.verio.net 1012426138 165.247.113.186 (Wed, 30 Jan 2002 21:28:58 GMT)
NNTP-Posting-Date: Wed, 30 Jan 2002 21:28:58 GMT
Organization: Verio
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 30 Jan 2002 14:49:05 +0100, "Christophe BARIBAUD"
<cbaribau AT jnjfr DOT jnj DOT com> wrote:

>You asked pwr function to return an integer, so it returns an integer,
>truncating float value temp.
>
>try :
>float pwr(const register float m, register int e)
>instead
>
>You seem to use frequently "register". I don't know if it works really on
>floats...

And also, register is probably silently ignored in an argument list. Whether the
argument passing is via a call frame or on a stack, the location of the argument
is fixed and I don't think it can be a register.

>
>Regards
>
>"Pedro Izecksohn" <izecksohn AT yahoo DOT com> a écrit dans le message news:
>002001c1a98f$d99f5580$19e0a0c8 AT rjo DOT virtua DOT com DOT br...
>>
>>    Why does the attached file when compiled rounds the result ?
>>
>>
>

**********************************************************************
*       Bob Doherty                   *  rdoherty2 AT earthlink DOT net          *
*       USDA/ARS/BHNRC/FCL            *  doherty AT bhnrc DOT usda DOT gov      *
*       Beltsville, MD 20705          *                              *
**********************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019