projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New function and example program computes Fibonacci numbers fairly fast.
[u/mdw/catacomb]
/
square.c
diff --git
a/square.c
b/square.c
index
cb243b3
..
6ed8d86
100644
(file)
--- a/
square.c
+++ b/
square.c
@@
-155,7
+155,7
@@
void square_eblk(const square_ctx *k, const uint32 *s, uint32 *dst)
{
uint32 a = s[0], b = s[1], c = s[2], d = s[3];
uint32 aa, bb, cc, dd;
{
uint32 a = s[0], b = s[1], c = s[2], d = s[3];
uint32 aa, bb, cc, dd;
- uint32 *w = k->w;
+
const
uint32 *w = k->w;
a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++;
a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++;
@@
-175,7
+175,7
@@
void square_dblk(const square_ctx *k, const uint32 *s, uint32 *dst)
{
uint32 a = s[0], b = s[1], c = s[2], d = s[3];
uint32 aa, bb, cc, dd;
{
uint32 a = s[0], b = s[1], c = s[2], d = s[3];
uint32 aa, bb, cc, dd;
- uint32 *w = k->wi;
+
const
uint32 *w = k->wi;
a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++;
a ^= *w++; b ^= *w++; c ^= *w++; d ^= *w++;