Re: [HACKERS] qsort again (was Re: Strange Create Index

From: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: [HACKERS] qsort again (was Re: Strange Create Index
Date: 2006-02-17 02:02:19
Message-ID: 20060217020219.GE5273@uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Lang 2006-02-17 05:33:16 Re: qsort again (was Re: [PERFORM] Strange Create Index
Previous Message Markus Schaber 2006-02-17 00:18:06 Re: [HACKERS] qsort again (was Re: Strange Create Index

Browse pgsql-performance by date

  From Date Subject
Next Message David Lang 2006-02-17 05:33:16 Re: qsort again (was Re: [PERFORM] Strange Create Index
Previous Message Markus Schaber 2006-02-17 00:18:06 Re: [HACKERS] qsort again (was Re: Strange Create Index