mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-14 05:52:49 +00:00
amd64-{51-30k,64-24k} impls should work now
This commit is contained in:
parent
59f318aa64
commit
966cf38205
16 changed files with 135 additions and 66 deletions
6
hex.h
6
hex.h
|
@ -1,11 +1,11 @@
|
|||
#include <stdio.h>
|
||||
|
||||
static const char hext[] = "0123456789ABCDEF";
|
||||
static void printhex(const char *z, size_t l)
|
||||
static void printhex(const unsigned char *z,size_t l)
|
||||
{
|
||||
printf("[");
|
||||
for (size_t i = 0; i < l; ++i) {
|
||||
printf("%c%c", hext[*z >> 4], hext[*z & 0xF]);
|
||||
for (size_t i = 0;i < l;++i) {
|
||||
printf("%c%c",hext[*z >> 4],hext[*z & 0xF]);
|
||||
++z;
|
||||
}
|
||||
printf("]\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue