2 * SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2008 Intel Corporation
5 * Copyright (c) 2018 The Linux Foundation. All rights reserved.
11 #include <linux/math.h>
12 #include <linux/types.h>
14 #define ASCII85_BUFSZ 6
17 ascii85_encode_len(long len)
19 return DIV_ROUND_UP(len, 4);
22 static inline const char *
23 ascii85_encode(u32 in, char *out)
32 out[i] = '!' + in % 85;