1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.jvm
.mle
;
12 import cc
.squirreljme
.runtime
.cldc
.annotation
.Api
;
13 import cc
.squirreljme
.runtime
.cldc
.annotation
.SquirrelJMEVendorApi
;
16 * This contains various math functions.
21 public final class MathShelf
33 * Extracts the raw bits of the given value.
35 * @param __v The value to extract.
36 * @return The raw bits.
40 public static native long rawDoubleToLong(double __v
);
43 * Extracts the raw bits of the given value.
45 * @param __v The value to extract.
46 * @return The raw bits.
50 public static native int rawFloatToInt(float __v
);
53 * Composes the value from the given bits
55 * @param __b The raw bits.
60 public static native float rawIntToFloat(int __b
);
63 * Composes the value from the given bits
65 * @param __b The raw bits.
70 public static native double rawLongToDouble(long __b
);