~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/mp-fibonacci.c: Fix spacing in comment.
[catacomb]
/
math
/
gfx-sqr.c
diff --git
a/math/gfx-sqr.c
b/math/gfx-sqr.c
index
8e26f36
..
ba54da8
100644
(file)
--- a/
math/gfx-sqr.c
+++ b/
math/gfx-sqr.c
@@
-29,11
+29,10
@@
#include "mpx.h"
#include "gfx.h"
#include "mpx.h"
#include "gfx.h"
-#include "gfx-sqr-tab.h"
/*----- Static variables --------------------------------------------------*/
/*----- Static variables --------------------------------------------------*/
-
static const uint16 tab[256] = GFX_SQRTAB
;
+
extern const uint16 gfx_sqrtab[256]
;
/*----- Main code ---------------------------------------------------------*/
/*----- Main code ---------------------------------------------------------*/
@@
-82,7
+81,7
@@
void gfx_sqr(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl)
/* --- Do the work in the middle --- */
/* --- Do the work in the middle --- */
- aa |= (mpd)(tab[U8(a)]) << bb;
+ aa |= (mpd)(
gfx_sqr
tab[U8(a)]) << bb;
bb += 16;
a >>= 8;
b -= 8;
bb += 16;
a >>= 8;
b -= 8;
@@
-101,7
+100,7
@@
void gfx_sqr(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl)
/* --- Flush the input buffer --- */
if (b) for (;;) {
/* --- Flush the input buffer --- */
if (b) for (;;) {
- aa |= (mpd)(tab[U8(a)]) << bb;
+ aa |= (mpd)(
gfx_sqr
tab[U8(a)]) << bb;
bb += 16;
if (bb > MPW_BITS) {
*dv++ = MPW(aa);
bb += 16;
if (bb > MPW_BITS) {
*dv++ = MPW(aa);