1#include <stdint.h>
2#include <stddef.h>
3#include <stdlib.h>
4
5#include "../../../include/libbase64.h"
6#include "../../codecs.h"
7
8#if HAVE_SSE42
9#include <nmmintrin.h>
10
11#include "../ssse3/dec_reshuffle.c"
12#include "../ssse3/dec_loop.c"
13#include "../ssse3/enc_translate.c"
14#include "../ssse3/enc_reshuffle.c"
15#include "../ssse3/enc_loop.c"
16
17#endif // HAVE_SSE42
18
19BASE64_ENC_FUNCTION(sse42)
20{
21#if HAVE_SSE42
22 #include "../generic/enc_head.c"
23 enc_loop_ssse3(&s, &slen, &o, &olen);
24 #include "../generic/enc_tail.c"
25#else
26 BASE64_ENC_STUB
27#endif
28}
29
30BASE64_DEC_FUNCTION(sse42)
31{
32#if HAVE_SSE42
33 #include "../generic/dec_head.c"
34 dec_loop_ssse3(&s, &slen, &o, &olen);
35 #include "../generic/dec_tail.c"
36#else
37 BASE64_DEC_STUB
38#endif
39}
40