/** * @ingroup matrix4 * @brief Swaps the columns and row * */ HYPAPI matrix4 * _matrix4_transpose_columnrow(matrix4 *self) { float tmp; _SWAP(self->c01, self->c10); _SWAP(self->c02, self->c20); _SWAP(self->c03, self->c30); _SWAP(self->c12, self->c21); _SWAP(self->c13, self->c31); _SWAP(self->c23, self->c32); return self; }
/** * @ingroup matrix4 * @brief Swaps the row and column * */ HYPAPI matrix4 * _matrix4_transpose_rowcolumn(matrix4 *self) { float tmp; _SWAP(self->r01, self->r10); _SWAP(self->r02, self->r20); _SWAP(self->r03, self->r30); _SWAP(self->r12, self->r21); _SWAP(self->r13, self->r31); _SWAP(self->r23, self->r32); return self; }
} //--------------------------------------------------------------------------- BOOL __fastcall CMBCS::IsLead(BYTE c) { if( !m_pLead ) return FALSE; return m_pLead[c]; } //--------------------------------------------------------------------------- BOOL __fastcall CMBCS::IsLead(const unsigned char *p) { return IsLead(*p); } //--------------------------------------------------------------------------- #define _SWAP(c) WORD((c<<8)|(c>>8)) const CONVALPHA _tConvAlphaJA[]={ {_SWAP(' '), ' '}, // {_SWAP('!'), '!'}, // {_SWAP('”'), '"'}, // {_SWAP('#'), '#'}, // {_SWAP('$'), '$'}, // {_SWAP('%'), '%'}, // {_SWAP('&'), '&'}, // {_SWAP('’'), 0x27}, // {_SWAP('('), '('}, // {_SWAP(')'), ')'}, // {_SWAP('='), '='}, // {_SWAP('−'), '-'}, // {_SWAP('@'), '@'}, // {_SWAP('+'), '+'}, // {_SWAP('*'), '*'}, // {_SWAP(';'), ';'},