Basic, Vector, VectorF16 and VectorF32 were stored with CRLF; convert them to LF like the rest of the tree. No other change to their content. .gitattributes keeps text files LF from here on. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
18 lines
No EOL
535 B
C++
Executable file
18 lines
No EOL
535 B
C++
Executable file
//SPDX-License-Identifier: LGPL-3.0-only
|
|
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
|
|
export module Crafter.Math:Basic;
|
|
import std;
|
|
import :VectorF32;
|
|
|
|
namespace Crafter {
|
|
template<typename T>
|
|
constexpr T ToRadian(T degrees) {
|
|
return degrees * (std::numbers::pi / 180);
|
|
}
|
|
|
|
#if (defined(__x86_64) && !defined(__AVX512FP16__)) || defined(__riscv_vector) || !defined(__FLT16_MAX__)
|
|
export template <std::uint32_t Len, std::uint32_t Packing>
|
|
using VectorF16 = VectorF32<Len, Packing>;
|
|
#endif
|
|
} |