dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
40 lines
555 B
C
40 lines
555 B
C
/*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* Copyright (c) 2008 Intel Corporation
|
|
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _ASCII85_H_
|
|
#define _ASCII85_H_
|
|
|
|
#include <linux/math.h>
|
|
#include <linux/types.h>
|
|
|
|
#define ASCII85_BUFSZ 6
|
|
|
|
static inline long
|
|
ascii85_encode_len(long len)
|
|
{
|
|
return DIV_ROUND_UP(len, 4);
|
|
}
|
|
|
|
static inline const char *
|
|
ascii85_encode(u32 in, char *out)
|
|
{
|
|
int i;
|
|
|
|
if (in == 0)
|
|
return "z";
|
|
|
|
out[5] = '\0';
|
|
for (i = 5; i--; ) {
|
|
out[i] = '!' + in % 85;
|
|
in /= 85;
|
|
}
|
|
|
|
return out;
|
|
}
|
|
|
|
#endif
|