-
安装任意版本的
lua
或者luajit
. -
将
clib.lua
放置在/usr/bin
或者/usr/local/bin
下. -
使用
chmod +x clib.lua
为其添加可执行权限. -
完成
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** LICENSE: BSD | |
** Author: CandyMi[https://github.com/candymi] | |
*/ | |
#include "lcrypto.h" | |
#define GUID_LENGTH 35 | |
int lguid(lua_State *L) { | |
const uint8_t* hash = (const uint8_t*)luaL_checkstring(L, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#if defined(__AVX__) | |
#include <immintrin.h> | |
#endif | |
#if defined(__SSE2__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#if defined(__x86_64__) || defined(__i386__) | |
static inline uint32_t _mm_crc32_u8(uint32_t crc, uint8_t v) { | |
__asm__ volatile("crc32b %1, %0" : "+r"(crc) : "rm"(v)); | |
return crc; | |
} | |
static inline uint32_t _mm_crc32_u16(uint32_t crc, uint16_t v) { | |
__asm__ volatile("crc32w %1, %0" : "+r"(crc) : "rm"(v)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local type = type | |
local pairs = pairs | |
local assert = assert | |
local tostring = tostring | |
local setmetatable = setmetatable | |
local tconcat = table.concat | |
---@class Set @集合 | |
local MetaSet = { map = {} } |
-
CentOS(RHEL) 7+ 以上系统;
-
至少1C2G以上;
- 到这里找到自己想要安装的版本的
.repo
文件;