Skip to content

Commit 90ad04d

Browse files
authored
Update Tools.cpp
1 parent 8b275b4 commit 90ad04d

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

libOTe/Tools/Tools.cpp

+12-13
Original file line numberDiff line numberDiff line change
@@ -349,19 +349,6 @@ namespace osuCrypto {
349349
transpose(inn, outt);
350350
}
351351

352-
void transpose(const MatrixView<u8>& in, const MatrixView<u8>& out)
353-
{
354-
#if defined(ENABLE_AVX)
355-
avx_transpose(in, out);
356-
#elif defined(ENABLE_SSE)
357-
sse_transpose(in, out);
358-
#else
359-
throw std::runtime_error("not impl. " LOCATION);
360-
//eklundh_transpose(in, out);
361-
#endif
362-
}
363-
364-
365352
void sse_transpose(const MatrixView<u8>& in, const MatrixView<u8>& out)
366353
{
367354
// the amount of work that we use to vectorize (hard code do not change)
@@ -851,6 +838,18 @@ namespace osuCrypto {
851838
}
852839
#endif
853840

841+
842+
void transpose(const MatrixView<u8>& in, const MatrixView<u8>& out)
843+
{
844+
#if defined(ENABLE_AVX)
845+
avx_transpose(in, out);
846+
#else
847+
sse_transpose(in, out);
848+
#endif
849+
}
850+
851+
852+
854853
void sse_transpose128(block* inOut)
855854
{
856855
array<block, 2> a, b;

0 commit comments

Comments
 (0)