[sane-devel] hp5400_internal.c rintf()

2003-04-30 Thread Martijn van Oosterhout
--IrhDeMKUP4DT/M7F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 30, 2003 at 11:21:12AM +0200, Henning Meier-Geinitz wrote: > Hi, >=20 > On Wed, Apr 30, 2003 at 02:29:51PM +1000, Martijn van Oosterhout wrote: > > be32

[sane-devel] hp5400_internal.c rintf()

2003-04-30 Thread Martijn van Oosterhout
--orO6xySwJI16pVnm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 29, 2003 at 08:06:58PM -0400, der Mouse wrote: > I suspect you really mean be32toh() - but note that I haven't read the > code in its full context. If

[sane-devel] hp5400_internal.c rintf()

2003-04-30 Thread Henning Meier-Geinitz
Hi, On Wed, Apr 30, 2003 at 02:29:51PM +1000, Martijn van Oosterhout wrote: > be32toh() would be an alternative, but it's not defined on any of my > systems. Long term we need the full solution anyway. While we are talking about the backend: Is anyone of the authors opposed to change the license

[sane-devel] hp5400_internal.c rintf()

2003-04-30 Thread Carsten Neumann
On Tue, 29 Apr 2003, Henning Meier-Geinitz wrote: > Hi, >=20 > On Fri, Apr 25, 2003 at 10:54:25AM +0200, Henning Meier-Geinitz wrote: > [rintf()] > > The line is: > >=20 > > int bpp =3D rintf ((float) htonl (res.transfersize) / pixels); > >=20 > > What about this: > >=20 > > int bpp =3D

[sane-devel] hp5400_internal.c rintf()

2003-04-29 Thread Henning Meier-Geinitz
Hi, On Fri, Apr 25, 2003 at 10:54:25AM +0200, Henning Meier-Geinitz wrote: [rintf()] > The line is: > > int bpp = rintf ((float) htonl (res.transfersize) / pixels); > > What about this: > > int bpp = (int) (float) htonl (res.transfersize) / pixels + 0.5); I have changed that in CVS

[sane-devel] hp5400_internal.c rintf()

2003-04-29 Thread der Mouse
>>> int bpp = (int) (float) htonl (res.transfersize) / pixels + 0.5); > Although this might yield the same result, but are you sure you don't > mean ntohl() instead of htonl()? I suspect you really mean be32toh() - but note that I haven't read the code in its full context. If you do, and you'

[sane-devel] hp5400_internal.c rintf()

2003-04-25 Thread Henning Meier-Geinitz
Hi, On Thu, Apr 24, 2003 at 11:12:00PM +0200, Franz Bakan wrote: > Everything built fine with one exeption: > OS/2 runtime-lib doesnt't have rintf() > (used in Line 1226 of hp5400_internal.c) rintf is C99, rint is BSD 4.2. > So I got one undefined symbol _rintf while linking. > > replacing rint

[sane-devel] hp5400_internal.c rintf()

2003-04-24 Thread
Second try: Hi, I just tried to compile the cvs from today. Everything built fine with one exeption: OS/2 runtime-lib doesnt't have rintf() (used in Line 1226 of hp5400_internal.c) So I got one undefined symbol _rintf while linking. replacing rintf() with rint() helps, but I don't know if that