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/kernel.h>
13 #define ASCII85_BUFSZ 6
16 ascii85_encode_len(long len)
18 return DIV_ROUND_UP(len, 4);
21 static inline const char *
22 ascii85_encode(u32 in, char *out)
31 out[i] = '!' + in % 85;