Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ipmi(4) and negative temperatures



On Tue, Apr 03, 2012 at 10:21:43AM +0900, Joerg Sonnenberger wrote:
> On Mon, Apr 02, 2012 at 08:55:10PM +0200, Matthias Drochner wrote:
> > 
> > On Mon, 2 Apr 2012 20:03:14 +0200
> > Nicolas Joly <njoly%pasteur.fr@localhost> wrote:
> > > +     vs = (sign == 0x1 || sign == 0x2) ? (int8_t)v : v;
> > 
> > Shouldn't the 1's complement case be considered? Just a small
> > error, but for sake of accuracy:
> > if ((vs < 0) && (sign == 0x1))
> >         vs++;
> 
> Who is using one-complement?

Almost nobody. But, according to the ipmi spec, it's allowed.

-- 
Nicolas Joly

Projects and Developments in Bioinformatics
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index