Skip to content

Instantly share code, notes, and snippets.

@hugbug
hugbug / rename_acronyms.py
Last active November 1, 2015 20:50
nzbget/nzbget#103: Source code naming convention: Renaming tool
#!/usr/bin/env python
#
# Identifier renaming tool to refactor nzbget source code.
#
# Copyright (C) 2015 Andrey Prygunkov <hugbug@users.sourceforge.net>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
@hugbug
hugbug / decoder_test.cpp
Created September 23, 2017 19:09
yEnc SSE Decoder Test
#include <vector>
#include <iostream>
static size_t do_decode_scalar(const unsigned char* src, unsigned char* dest, size_t len, char* state, bool isRaw);
static size_t do_decode_sse(const unsigned char* src, unsigned char* dest, size_t len, char* state, bool isRaw);
using decode_func = size_t(*)(const unsigned char* src, unsigned char* dest, size_t len, char* state, bool isRaw);
typedef struct
{