fenfire-dev
[Top][All Lists]
Advanced

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

[Fenfire-dev] Re: [Fencommits] libvob: start work on interfaces for the


From: Matti Katila
Subject: [Fenfire-dev] Re: [Fencommits] libvob: start work on interfaces for the new lob system
Date: Mon, 7 Mar 2005 09:48:03 +0200 (EET)

On Mon, 7 Mar 2005, Benja Fallenstein wrote:
> +public final class SizeRequest {
> +
> +    /** "Infinity". Can be used as the maximum size request of lobs
> +     *  that can be used at arbitrarily large sizes.
> +     *  <p>
> +     *  Float.POSITIVE_INFINITY is not used so that we can play a trick:
> +     *  if we want to distribute two thirds of the available space
> +     *  to one component and one third to another, we can use 2*INF
> +     *  as the size request of one and 1*INF as the size request of the 
> other.
> +     */
> +    float INF = (float)Math.pow(2, 1024);

Nice, you have just redefined infinity to non-infinity ;)  


   -Matti






reply via email to

[Prev in Thread] Current Thread [Next in Thread]