aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 12:06:28 +0000
committerKarl Heuer1994-10-04 12:06:28 +0000
commite0cb2a68a0ea33e3c6d976124669f33577f1ccae (patch)
tree43631631ee47962d323c06092e14061ff1c3fdca /src/floatfns.c
parent46283abed575444204ef9a41bda991034f48aaa6 (diff)
downloademacs-e0cb2a68a0ea33e3c6d976124669f33577f1ccae.tar.gz
emacs-e0cb2a68a0ea33e3c6d976124669f33577f1ccae.zip
(FLOAT_TO_INT, FLOAT_TO_INT2, Fexpt, Flogb, Ffloor): Use new accessor macros
instead of calling XSET directly.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index 134332b9861..3ea82d2b309 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -183,7 +183,7 @@ static char *float_error_fn_name;
183 if ((x) >= (((EMACS_INT) 1) << (VALBITS-1)) || \ 183 if ((x) >= (((EMACS_INT) 1) << (VALBITS-1)) || \
184 (x) <= - (((EMACS_INT) 1) << (VALBITS-1)) - 1) \ 184 (x) <= - (((EMACS_INT) 1) << (VALBITS-1)) - 1) \
185 range_error (name, num); \ 185 range_error (name, num); \
186 XSET (i, Lisp_Int, (EMACS_INT)(x)); \ 186 XSETINT (i, (EMACS_INT)(x)); \
187 } \ 187 } \
188 while (0) 188 while (0)
189#define FLOAT_TO_INT2(x, i, name, num1, num2) \ 189#define FLOAT_TO_INT2(x, i, name, num1, num2) \
@@ -192,7 +192,7 @@ static char *float_error_fn_name;
192 if ((x) >= (((EMACS_INT) 1) << (VALBITS-1)) || \ 192 if ((x) >= (((EMACS_INT) 1) << (VALBITS-1)) || \
193 (x) <= - (((EMACS_INT) 1) << (VALBITS-1)) - 1) \ 193 (x) <= - (((EMACS_INT) 1) << (VALBITS-1)) - 1) \
194 range_error2 (name, num1, num2); \ 194 range_error2 (name, num1, num2); \
195 XSET (i, Lisp_Int, (EMACS_INT)(x)); \ 195 XSETINT (i, (EMACS_INT)(x)); \
196 } \ 196 } \
197 while (0) 197 while (0)
198 198
@@ -473,7 +473,7 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0,
473 y = (unsigned)y >> 1; 473 y = (unsigned)y >> 1;
474 } 474 }
475 } 475 }
476 XSET (val, Lisp_Int, acc); 476 XSETINT (val, acc);
477 return val; 477 return val;
478 } 478 }
479 f1 = FLOATP (arg1) ? XFLOAT (arg1)->data : XINT (arg1); 479 f1 = FLOATP (arg1) ? XFLOAT (arg1)->data : XINT (arg1);
@@ -709,7 +709,7 @@ This is the same as the exponent of a float.")
709#endif 709#endif
710#endif 710#endif
711 } 711 }
712 XSET (val, Lisp_Int, value); 712 XSETINT (val, value);
713 return val; 713 return val;
714} 714}
715 715
@@ -778,7 +778,7 @@ With optional DIVISOR, return the largest integer no greater than ARG/DIVISOR.")
778 ? (i1 <= 0 ? -i1 / -i2 : -1 - ((i1 - 1) / -i2)) 778 ? (i1 <= 0 ? -i1 / -i2 : -1 - ((i1 - 1) / -i2))
779 : (i1 < 0 ? -1 - ((-1 - i1) / i2) : i1 / i2)); 779 : (i1 < 0 ? -1 - ((-1 - i1) / i2) : i1 / i2));
780 780
781 XSET (arg, Lisp_Int, i1); 781 XSETINT (arg, i1);
782 return arg; 782 return arg;
783 } 783 }
784 784