Lines Matching refs:ctx
58 color_point(mpd_t *x0, mpd_t *y0, long maxiter, mpd_context_t *ctx)
65 mpd_set_u32(x, 0, ctx);
66 mpd_set_u32(y, 0, ctx);
70 mpd_set_u32(sq_x, 0, ctx);
71 mpd_set_u32(sq_y, 0, ctx);
74 mpd_set_u32(two, 2, ctx);
77 mpd_mul(y, x, y, ctx);
78 mpd_mul(y, y, two, ctx);
79 mpd_add(y, y, y0, ctx);
81 mpd_sub(x, sq_x, sq_y, ctx);
82 mpd_add(x, x, x0, ctx);
84 mpd_mul(sq_x, x, x, ctx);
85 mpd_mul(sq_y, y, y, ctx);
88 mpd_copy(x0, x, ctx);
101 mpd_context_t ctx;
113 mpd_init(&ctx, prec);
118 mpd_set_string(x0, "0.222", &ctx);
119 mpd_set_string(y0, "0.333", &ctx);
120 if (ctx.status & MPD_Errors) {
127 color_point(x0, y0, iter, &ctx);