mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-15 10:47:56 +00:00
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
22 lines
594 B
C
22 lines
594 B
C
#ifndef TRANSPOSE_H
|
|
#define TRANSPOSE_H
|
|
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
|
|
|
|
/* Internal header file: all symbols have local scope in the DSO */
|
|
|
|
enum {FORWARD_CYCLE, BACKWARD_CYCLE};
|
|
|
|
void std_trans(mpd_uint_t dest[], mpd_uint_t src[], mpd_size_t rows, mpd_size_t cols);
|
|
int transpose_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols);
|
|
void transpose_3xpow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols);
|
|
|
|
static inline void pointerswap(mpd_uint_t **a, mpd_uint_t **b)
|
|
{
|
|
mpd_uint_t *tmp;
|
|
tmp = *b;
|
|
*b = *a;
|
|
*a = tmp;
|
|
}
|
|
|
|
|
|
#endif
|