X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..5937940fc6c45b93eb95554996d1cd1b5a1bf307:/math/gfx-sqr.c diff --git a/math/gfx-sqr.c b/math/gfx-sqr.c index 8e26f36..ba54da8 100644 --- a/math/gfx-sqr.c +++ b/math/gfx-sqr.c @@ -29,11 +29,10 @@ #include "mpx.h" #include "gfx.h" -#include "gfx-sqr-tab.h" /*----- Static variables --------------------------------------------------*/ -static const uint16 tab[256] = GFX_SQRTAB; +extern const uint16 gfx_sqrtab[256]; /*----- 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 --- */ - aa |= (mpd)(tab[U8(a)]) << bb; + aa |= (mpd)(gfx_sqrtab[U8(a)]) << bb; 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 (;;) { - aa |= (mpd)(tab[U8(a)]) << bb; + aa |= (mpd)(gfx_sqrtab[U8(a)]) << bb; bb += 16; if (bb > MPW_BITS) { *dv++ = MPW(aa);