androidx.ui.util

Classes

Float16

The Float16 class is a wrapper and a utility class to manipulate half-precision 16-bit IEEE 754 floating point data types (also called fp16 or binary16).

Top-level functions summary

Float16
max(x: Float16, y: Float16)

Returns the larger of two half-precision float values (the value closest to positive infinity).

Float16
min(x: Float16, y: Float16)

Returns the smaller of two half-precision float values (the value closest to negative infinity).

Top-level functions

max

fun max(
    x: Float16,
    y: Float16
): Float16

Returns the larger of two half-precision float values (the value closest to positive infinity). Special values are handled in the following ways:

Parameters
x: Float16 The first half-precision value
y: Float16 The second half-precision value
Return
The larger of the two specified half-precision values

min

fun min(
    x: Float16,
    y: Float16
): Float16

Returns the smaller of two half-precision float values (the value closest to negative infinity). Special values are handled in the following ways:

Parameters
x: Float16 The first half-precision value
y: Float16 The second half-precision value
Return
The smaller of the two specified half-precision values