comparison src/floatfns.c @ 89909:68c22ea6027c

Sync to HEAD
author Kenichi Handa <handa@m17n.org>
date Fri, 16 Apr 2004 12:51:06 +0000
parents 375f2633d815
children eac554634bfa
comparison
equal deleted inserted replaced
89908:ee1402f7b568 89909:68c22ea6027c
1 /* Primitive operations on floating point for GNU Emacs Lisp interpreter. 1 /* Primitive operations on floating point for GNU Emacs Lisp interpreter.
2 Copyright (C) 1988, 1993, 1994, 1999 Free Software Foundation, Inc. 2 Copyright (C) 1988, 1993, 1994, 1999, 2003 Free Software Foundation, Inc.
3 3
4 This file is part of GNU Emacs. 4 This file is part of GNU Emacs.
5 5
6 GNU Emacs is free software; you can redistribute it and/or modify 6 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
690 Lisp_Object val; 690 Lisp_Object val;
691 EMACS_INT value; 691 EMACS_INT value;
692 double f = extract_float (arg); 692 double f = extract_float (arg);
693 693
694 if (f == 0.0) 694 if (f == 0.0)
695 value = -(VALMASK >> 1); 695 value = MOST_NEGATIVE_FIXNUM;
696 else 696 else
697 { 697 {
698 #ifdef HAVE_LOGB 698 #ifdef HAVE_LOGB
699 IN_FLOAT (value = logb (f), "logb", arg); 699 IN_FLOAT (value = logb (f), "logb", arg);
700 #else 700 #else
1073 defsubr (&Sceiling); 1073 defsubr (&Sceiling);
1074 defsubr (&Sfloor); 1074 defsubr (&Sfloor);
1075 defsubr (&Sround); 1075 defsubr (&Sround);
1076 defsubr (&Struncate); 1076 defsubr (&Struncate);
1077 } 1077 }
1078
1079 /* arch-tag: be05bf9d-049e-4e31-91b9-e6153d483ae7
1080 (do not change this comment) */