Blender V5.0
BLI_math_half.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#include <cstddef>
12#include <cstdint>
13
14namespace blender::math {
15
31
36
45
49float half_to_float(uint16_t v);
50
51void float_to_half_array(const float *src, uint16_t *dst, size_t length);
52void float_to_half_make_finite_array(const float *src, uint16_t *dst, size_t length);
53void half_to_float_array(const uint16_t *src, float *dst, size_t length);
54
55} // namespace blender::math
ATTR_WARN_UNUSED_RESULT const BMVert * v
void float_to_half_array(const float *src, uint16_t *dst, size_t length)
Definition math_half.cc:238
uint16_t float_to_half(float v)
Definition math_half.cc:27
T length(const VecBase< T, Size > &a)
void half_to_float_array(const uint16_t *src, float *dst, size_t length)
Definition math_half.cc:368
void float_to_half_make_finite_array(const float *src, uint16_t *dst, size_t length)
Definition math_half.cc:274
float half_to_float(uint16_t v)
Definition math_half.cc:108
uint16_t float_to_half_make_finite(float v)
Definition math_half.cc:91