#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 ---------------------------------------------------------*/
/* --- 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;
/* --- 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);