Re: [HACKERS] qsort again (was Re: Strange Create Index - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: [HACKERS] qsort again (was Re: Strange Create Index
Date
Msg-id 20060217020219.GE5273@uio.no
Whole thread Raw
In response to Re: [HACKERS] qsort again (was Re: Strange Create Index  (PFC <lists@peufeu.com>)
List pgsql-performance
On Fri, Feb 17, 2006 at 12:05:23AM +0100, PFC wrote:
>     I would have said a 64 bit int, but it's the same idea. However it
>     won't  work for floats, which is a pity, because floats fit in 64 bits.

Actually, you can compare IEEE floats directly as ints, as long as they're
positive. (If they can be both positive and negative, you need to take
special care of the sign bit first, but it's still doable.)

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: Markus Schaber
Date:
Subject: Re: [HACKERS] qsort again (was Re: Strange Create Index
Next
From: David Lang
Date:
Subject: Re: [HACKERS] qsort again (was Re: Strange Create Index