Anonymous
8/17/2025, 11:06:25 AM
No.106288571
>>106288583
>>106288590
>>106288604
>>106290823
>>106290913
>>106291374
clang > gcc
https://clang.llvm.org/docs/LanguageExtensions.html
>Clang provides an extension for matrix types, which is currently being implemented. See the draft specification for more details.
>For example, the code below uses the matrix types extension to multiply two 4x4 float matrices and add the result to a third 4x4 matrix.
typedef float m4x4_t __attribute__((matrix_type(4, 4)));
m4x4_t f(m4x4_t a, m4x4_t b, m4x4_t c) {
return a + b * c;
}
https://clang.llvm.org/docs/LanguageExtensions.html
>Clang provides an extension for matrix types, which is currently being implemented. See the draft specification for more details.
>For example, the code below uses the matrix types extension to multiply two 4x4 float matrices and add the result to a third 4x4 matrix.
typedef float m4x4_t __attribute__((matrix_type(4, 4)));
m4x4_t f(m4x4_t a, m4x4_t b, m4x4_t c) {
return a + b * c;
}