Debian Codegraph @

mypyc/lib-rt/base64/arch/generic/codec.c

raw
1 #include <stdint.h>
2 #include <stddef.h>
3 #include <string.h>
4
5 #include "libbase64.h"
6 #include "../../tables/tables.h"
7 #include "../../codecs.h"
8 #include "config.h"
9 #include "../../env.h"
10
11 #if BASE64_WORDSIZE == 32
12 # include "32/enc_loop.c"
13 #elif BASE64_WORDSIZE == 64
14 # include "64/enc_loop.c"
15 #endif
16
17 #if BASE64_WORDSIZE >= 32
18 # include "32/dec_loop.c"
19 #endif
20
21 void
22 base64_stream_encode_plain BASE64_ENC_PARAMS
23 {
24 #include "enc_head.c"
25 #if BASE64_WORDSIZE == 32
26 enc_loop_generic_32(&s, &slen, &o, &olen);
27 #elif BASE64_WORDSIZE == 64
28 enc_loop_generic_64(&s, &slen, &o, &olen);
29 #endif
30 #include "enc_tail.c"
31 }
32
33 int
34 base64_stream_decode_plain BASE64_DEC_PARAMS
35 {
36 #include "dec_head.c"
37 #if BASE64_WORDSIZE >= 32
38 dec_loop_generic_32(&s, &slen, &o, &olen);
39 #endif
40 #include "dec_tail.c"
41 }