1 /* SPDX-License-Identifier: MIT */
3 /* Copyright 2024 Advanced Micro Devices, Inc. */
5 #ifndef SPL_CUSTOM_FLOAT_H_
6 #define SPL_CUSTOM_FLOAT_H_
8 #include "spl_os_types.h"
9 #include "spl_fixpt31_32.h"
11 struct spl_custom_float_format {
12 uint32_t mantissa_bits;
13 uint32_t exponenta_bits;
17 struct spl_custom_float_value {
24 bool spl_convert_to_custom_float_format(
25 struct spl_fixed31_32 value,
26 const struct spl_custom_float_format *format,
29 #endif //SPL_CUSTOM_FLOAT_H_