mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-03 08:30:44 +02:00
25 lines
450 B
C
25 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
|