Lines Matching refs:hs
59 long hs; /* (b * 2)^2 */
263 hs = h * h;
266 while ((ws > 32768) || (hs > 32768))
269 hs = (hs + 1) / 2; /* drawing large ellipses problematic... */
272 while ((ws * hs) > (0x04000000L / whs))
275 hs = (hs + 1) / 2;
278 whs *= ws * hs;
298 g = g * g * hs + 4 * ws - whs;
300 while ((x2 * hs) > (y2 * ws)) /* Keep |tangent| > 1 */
308 g -= hs * 4 * x2;
332 g = g * g * ws + 4 * hs - whs;
334 while ((x2 * hs) < (y2 * ws))
337 g += hs * 4 * (x2 + 1);
383 if (((s_cos * hs) > (s_sin * ws)) && ((e_cos * hs) < (e_sin * ws)))
406 if (conquer || (((s_cos * hs) > (s_sin * ws)) && ((e_cos * hs) > (e_sin * ws))))
415 g = g * g * hs + 4 * ws - whs;
417 while ((x2 * hs) > (y2 * ws)) /* Keep |tangent| > 1 */
428 g -= hs * 4 * x2;
446 g -= hs * 4 * x2;
471 if (conquer || (((s_cos * hs) < (s_sin * ws)) && ((e_cos * hs) < (e_sin * ws))))
480 g = g * g * ws + 4 * hs - whs;
482 while ((x2 * hs) < (y2 * ws))
485 g += hs * 4 * (x2 + 1);
506 g += hs * 4 * (x2 + 1);
551 long hs; /* (b * 2)^2 */
614 hs = h * h;
617 while ((ws > 32768) || (hs > 32768))
620 hs = (hs + 1) / 2; /* drawing large ellipses problematic... */
623 while ((ws * hs) > (0x04000000L / whs))
626 hs = (hs + 1) / 2;
629 whs *= ws * hs;
631 if ((a_cos * hs) > (a_sin * ws))
637 g = g * g * hs + 4 * ws - whs;
639 while ((x2 * hs) > (y2 * ws)) /* Keep |tangent| > 1 */
647 g -= hs * 4 * x2;
664 g = g * g * ws + 4 * hs - whs;
666 while ((x2 * hs) < (y2 * ws))
669 g += hs * 4 * (x2 + 1);