annotate etc/VEGETABLES @ 5911:48386fd60fd0

GMP functions that take doubles choke on non-finite values, avoid that. src/ChangeLog addition: 2015-05-10 Aidan Kehoe <kehoea@parhasard.net> * floatfns.c (double_to_integer): Rename this from float_to_int to fit our newer, bignum-compatible terminology. GMP can signal SIGFPE when asked to turn NaN or infinity into a bignum, and we're not prepared to handle that signal if the OS float library routines don't do that, so check for those values explicitly. * floatfns.c (ceiling_two_float): * floatfns.c (ceiling_one_float): * floatfns.c (floor_two_float): * floatfns.c (floor_one_float): * floatfns.c (round_two_float): * floatfns.c (round_one_float): * floatfns.c (truncate_two_float): * floatfns.c (truncate_one_float): Call double_to_integer() with its new name. * number.c: Don't use the {bignum,ratio,bigfloat}_set_double functions directly here, with GMP they can choke when handed non-finite C doubles, call Ftruncate() and the new float_to_bigfloat() from floatfns.c. Maybe we should extend number-gmp.c with GMP-specific implementations that check for non-finite values. tests/ChangeLog addition: 2015-05-10 Aidan Kehoe <kehoea@parhasard.net> * automated/lisp-tests.el: Backslash a few parentheses in the first column for the sake of fontification. * automated/lisp-tests.el: Check that the rounding functions signal Lisp errors correctly when handed positive and negative infinity and NaN.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 10 May 2015 19:07:09 +0100
parents ae97e44a6527
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
636
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
1 alfalfa
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
2 anise
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
3 artichoke
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
4 asparagus
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
5 bamboo
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
6 beets
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
7 bok choi
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
8 broccoflower
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
9 broccoli
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
10 brussels sprouts
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
11 burdock
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
12 cabbage
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
13 carrot
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
14 cauliflower
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
15 cassava
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
16 celery
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
17 celeriac
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
18 chayote
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
19 chestnut
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
20 chives
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
21 cilantro
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
22 corn
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
23 cucumber
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
24 daikon
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
25 dandelion
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
26 eggplant
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
27 endive
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
28 fiddleheads
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
29 fuki
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
30 garbanzo
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
31 garlic
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
32 ginger
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
33 habanero
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
34 horseradish
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
35 kale
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
36 kohlarbi
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
37 leeks
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
38 lettuce
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
39 lima bean
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
40 marjoram
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
41 mushroom
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
42 mustard
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
43 okra
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
44 onion
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
45 parsley
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
46 peanut
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
47 pimento
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
48 potato
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
49 pumpkin
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
50 radish
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
51 rutabaga
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
52 renkon
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
53 satoimo
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
54 shallots
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
55 sorrel
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
56 spinach
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
57 squash
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
58 swisschard
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
59 taro
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
60 tomato
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
61 turnip
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
62 watercress
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
63 yam
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
64 yucca
ae97e44a6527 [xemacs-hg @ 2001-07-26 06:20:44 by stephent]
stephent
parents:
diff changeset
65 zucchini