diff --git a/samples/f3850/mandelbrot.c b/samples/f3850/mandelbrot.c deleted file mode 100644 index 150a9c61..00000000 --- a/samples/f3850/mandelbrot.c +++ /dev/null @@ -1,48 +0,0 @@ -#include -#include - -int main(int argc, char **argv) { - const int debug = (argc >= 2); - const int16_t f = 50; - for (int16_t y = -12; y <= 12; ++y) { - for (int16_t x = -49; x <= 29; ++x) { - int16_t c = x * 229 / 100; - int16_t d = y * 416 / 100; - int16_t a = c; - int16_t b = d; - int16_t i = 0; - if (debug) - printf("Y=%d X=%d C=%d D=%d\n", y, x, c, d); - do { - int16_t q = b / f; - int16_t s = b - q * f; - int16_t t = (a * a - b * b) / f + c; - b = 2 * (a * q + a * s / f) + d; - a = t; - int16_t p = a / f; - q = b / f; - if (debug) - printf(" I=%d A=%d B=%d P=%d Q=%d\n", i, a, b, p, q); - if (p * p + q * q > 4) - break; - ++i; - } while (i < 16); - char out; - if (i >= 16) { - out = ' '; - } else if (i < 10) { - out = i + '0'; - } else { - out = i - 10 + 'A'; - } - if (debug) { - printf("@=%c\n", out); - } else { - putchar(out); - } - } - if (!debug) - printf("\n"); - } - return 0; -} diff --git a/samples/i8048/mandelbrot.c b/samples/mandelbrot.c similarity index 100% rename from samples/i8048/mandelbrot.c rename to samples/mandelbrot.c