mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 05:30:11 +01:00
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35434>
24 lines
450 B
C
24 lines
450 B
C
/*
|
|
* Copyright 2025 Valve Corporation
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
uint8_t _mesa_float_to_e4m3fn(float val);
|
|
uint8_t _mesa_float_to_e4m3fn_sat(float val);
|
|
float _mesa_e4m3fn_to_float(uint8_t val);
|
|
|
|
uint8_t _mesa_float_to_e5m2(float val);
|
|
uint8_t _mesa_float_to_e5m2_sat(float val);
|
|
float _mesa_e5m2_to_float(uint8_t val);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|