forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6bf0bc8
committed
Provide separate header file for built-in float types
Some data types under adt/ have separate header files, but most simpleones do not, and their public functions are defined in builtins.h. Asthe patches improving geometric types will require making additionalfunctions public, this seems like a good opportunity to create a headerfor floats types.Commit1acf757 made _cmp functions public to solve NaN issues locallyfor GiST indexes. This patch reworks it in favour of a more widelyapplicable API. The API uses inline functions, as they are easier touse compared to macros, and avoid double-evaluation hazards.Author: Emre HasegeliReviewed-by: Kyotaro HoriguchiDiscussion:https://www.postgresql.org/message-id/CAE2gYzxF7-5djV6-cEvqQu-fNsnt%3DEqbOURx7ZDg%2BVv6ZMTWbg%40mail.gmail.com1 parenta7dc63d commit6bf0bc8
File tree
20 files changed
+556
-513
lines changed- contrib
- btree_gin
- btree_gist
- cube
- postgres_fdw
- src
- backend
- access/gist
- utils
- adt
- misc
- include/utils
20 files changed
+556
-513
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 37 | | |
46 | 38 | | |
47 | 39 | | |
| |||
53 | 45 | | |
54 | 46 | | |
55 | 47 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
60 | 52 | | |
61 | 53 | | |
62 | 54 | | |
| |||
73 | 65 | | |
74 | 66 | | |
75 | 67 | | |
76 | | - | |
77 | | - | |
| 68 | + | |
| 69 | + | |
78 | 70 | | |
79 | 71 | | |
80 | 72 | | |
| |||
143 | 135 | | |
144 | 136 | | |
145 | 137 | | |
146 | | - | |
| 138 | + | |
147 | 139 | | |
148 | | - | |
| 140 | + | |
149 | 141 | | |
150 | | - | |
| 142 | + | |
151 | 143 | | |
152 | | - | |
| 144 | + | |
153 | 145 | | |
154 | 146 | | |
155 | 147 | | |
| |||
615 | 607 | | |
616 | 608 | | |
617 | 609 | | |
618 | | - | |
| 610 | + | |
619 | 611 | | |
620 | | - | |
| 612 | + | |
621 | 613 | | |
622 | 614 | | |
623 | 615 | | |
| |||
630 | 622 | | |
631 | 623 | | |
632 | 624 | | |
633 | | - | |
| 625 | + | |
634 | 626 | | |
635 | 627 | | |
636 | 628 | | |
| |||
652 | 644 | | |
653 | 645 | | |
654 | 646 | | |
655 | | - | |
| 647 | + | |
656 | 648 | | |
657 | | - | |
| 649 | + | |
658 | 650 | | |
659 | 651 | | |
660 | 652 | | |
| |||
666 | 658 | | |
667 | 659 | | |
668 | 660 | | |
669 | | - | |
| 661 | + | |
670 | 662 | | |
671 | 663 | | |
672 | 664 | | |
| |||
754 | 746 | | |
755 | 747 | | |
756 | 748 | | |
757 | | - | |
| 749 | + | |
758 | 750 | | |
759 | 751 | | |
760 | | - | |
| 752 | + | |
761 | 753 | | |
762 | 754 | | |
763 | 755 | | |
| |||
775 | 767 | | |
776 | 768 | | |
777 | 769 | | |
778 | | - | |
| 770 | + | |
779 | 771 | | |
780 | 772 | | |
781 | 773 | | |
| |||
859 | 851 | | |
860 | 852 | | |
861 | 853 | | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
866 | 858 | | |
867 | 859 | | |
868 | 860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments
Comments
(0)