If X is zero, both parts (SGNFCAND and EXP) are zero. */)
(Lisp_Object x)
{
- double f = XFLOATINT (x);
+ double f = extract_float (x);
int exponent;
double sgnfcand = frexp (f, &exponent);
return Fcons (make_float (sgnfcand), make_number (exponent));
{
CHECK_NUMBER (exponent);
int e = min (max (INT_MIN, XINT (exponent)), INT_MAX);
- return make_float (ldexp (XFLOATINT (sgnfcand), e));
+ return make_float (ldexp (extract_float (sgnfcand), e));
}
\f
DEFUN ("exp", Fexp, Sexp, 1, 1, 0,
for (i = 0;
i < 9 && CONSP (matrix) && NUMBERP (XCAR (matrix));
++i, matrix = XCDR (matrix))
- trans[i] = XFLOATINT (XCAR (matrix));
+ trans[i] = extract_float (XCAR (matrix));
}
else if (VECTORP (matrix) && ASIZE (matrix) >= 9)
{
for (i = 0; i < 9 && NUMBERP (AREF (matrix, i)); ++i)
- trans[i] = XFLOATINT (AREF (matrix, i));
+ trans[i] = extract_float (AREF (matrix, i));
}
if (NILP (color_adjust))
color_adjust = make_number (0xffff / 2);
if (i == 9 && NUMBERP (color_adjust))
- x_detect_edges (f, img, trans, XFLOATINT (color_adjust));
+ x_detect_edges (f, img, trans, extract_float (color_adjust));
}
height = safe_call1 (it->font_height,
face->lface[LFACE_HEIGHT_INDEX]);
if (NUMBERP (height))
- new_height = XFLOATINT (height);
+ new_height = extract_float (height);
}
else if (NUMBERP (it->font_height))
{
f = FACE_FROM_ID (it->f,
lookup_basic_face (it->f, DEFAULT_FACE_ID));
- new_height = (XFLOATINT (it->font_height)
+ new_height = (extract_float (it->font_height)
* XINT (f->lface[LFACE_HEIGHT_INDEX]));
}
else
unbind_to (count, Qnil);
if (NUMBERP (value))
- new_height = XFLOATINT (value);
+ new_height = extract_float (value);
}
if (new_height > 0)
return 0;
value = XCAR (XCDR (spec));
- if (NUMBERP (value) && XFLOATINT (value) > 0)
+ if (NUMBERP (value) && extract_float (value) > 0)
it->space_width = value;
}
if (NUMBERP (value))
{
struct face *face = FACE_FROM_ID (it->f, it->face_id);
- it->voffset = - (XFLOATINT (value)
+ it->voffset = - (extract_float (value)
* (normal_char_height (face->font, -1)));
}
#endif /* HAVE_WINDOW_SYSTEM */
/* Compute the max. number of lines specified by the user. */
if (FLOATP (Vmax_mini_window_height))
- max_height = XFLOATINT (Vmax_mini_window_height) * total_height;
+ max_height = extract_float (Vmax_mini_window_height) * total_height;
else if (INTEGERP (Vmax_mini_window_height))
max_height = XINT (Vmax_mini_window_height) * unit;
else
height = WINDOW_BOX_TEXT_HEIGHT (w);
if (NUMBERP (aggressive))
{
- double float_amount = XFLOATINT (aggressive) * height;
+ double float_amount = extract_float (aggressive) * height;
int aggressive_scroll = float_amount;
if (aggressive_scroll == 0 && float_amount > 0)
aggressive_scroll = 1;
height = WINDOW_BOX_TEXT_HEIGHT (w);
if (NUMBERP (aggressive))
{
- double float_amount = XFLOATINT (aggressive) * height;
+ double float_amount = extract_float (aggressive) * height;
int aggressive_scroll = float_amount;
if (aggressive_scroll == 0 && float_amount > 0)
aggressive_scroll = 1;
scroll-*-aggressively. */
if (!scroll_conservatively && NUMBERP (aggressive))
{
- double float_amount = XFLOATINT (aggressive);
+ double float_amount = extract_float (aggressive);
pt_offset = float_amount * WINDOW_BOX_TEXT_HEIGHT (w);
if (pt_offset == 0 && float_amount > 0)
int base_unit = (width_p
? FRAME_COLUMN_WIDTH (it->f)
: FRAME_LINE_HEIGHT (it->f));
- return OK_PIXELS (XFLOATINT (prop) * base_unit);
+ return OK_PIXELS (extract_float (prop) * base_unit);
}
if (CONSP (prop))
if (NUMBERP (car))
{
double fact;
- pixels = XFLOATINT (car);
+ pixels = extract_float (car);
if (NILP (cdr))
return OK_PIXELS (pixels);
if (calc_pixel_width_or_height (&fact, it, cdr,
bool stretched_p
= it->char_to_display == ' ' && !NILP (it->space_width);
if (stretched_p)
- it->pixel_width *= XFLOATINT (it->space_width);
+ it->pixel_width *= extract_float (it->space_width);
/* If face has a box, add the box thickness to the character
height. If character has a box line to the left and/or
&& (lx0 = XCAR (XCAR (circ)), INTEGERP (lx0))
&& (ly0 = XCDR (XCAR (circ)), INTEGERP (ly0)))
{
- double r = XFLOATINT (lr);
+ double r = extract_float (lr);
double dx = XINT (lx0) - x;
double dy = XINT (ly0) - y;
return (dx * dx + dy * dy <= r * r);