Compilation fixes with missing import.
[SquirrelJME.git] / modules / cldc-compact / src / main / java / cc / squirreljme / jvm / mle / MathShelf.java
blob2995108b05119d0ad1d4169bd6aca24e00da638c
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
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;
15 /**
16 * This contains various math functions.
18 * @since 2020/06/18
20 @SquirrelJMEVendorApi
21 public final class MathShelf
23 /**
24 * Not used.
26 * @since 2020/06/18
28 private MathShelf()
32 /**
33 * Extracts the raw bits of the given value.
35 * @param __v The value to extract.
36 * @return The raw bits.
37 * @since 2020/06/18
39 @SquirrelJMEVendorApi
40 public static native long rawDoubleToLong(double __v);
42 /**
43 * Extracts the raw bits of the given value.
45 * @param __v The value to extract.
46 * @return The raw bits.
47 * @since 2020/06/18
49 @SquirrelJMEVendorApi
50 public static native int rawFloatToInt(float __v);
52 /**
53 * Composes the value from the given bits
55 * @param __b The raw bits.
56 * @return The value.
57 * @since 2020/06/18
59 @SquirrelJMEVendorApi
60 public static native float rawIntToFloat(int __b);
62 /**
63 * Composes the value from the given bits
65 * @param __b The raw bits.
66 * @return The value.
67 * @since 2020/06/18
69 @SquirrelJMEVendorApi
70 public static native double rawLongToDouble(long __b);