forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0209f02
committed
Don't use is_infinite() where isinf() will do.
Places that aren't testing for sign should not use the more expensivefunction; it's just wasteful, not to mention being a cognitive loadfor readers who may know what isinf() is but not is_infinite().As things stand, we actually don't need is_infinite() anyplace exceptfloat4out/float8out, which means it could potentially go away altogetherafter the changes I proposed in <13178.1538794717@sss.pgh.pa.us>.1 parent07ee62c commit0209f02
2 files changed
+10
-8
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5731 | 5731 |
| |
5732 | 5732 |
| |
5733 | 5733 |
| |
5734 |
| - | |
| 5734 | + | |
5735 | 5735 |
| |
5736 | 5736 |
| |
5737 | 5737 |
| |
| |||
5835 | 5835 |
| |
5836 | 5836 |
| |
5837 | 5837 |
| |
5838 |
| - | |
| 5838 | + | |
5839 | 5839 |
| |
5840 | 5840 |
| |
5841 | 5841 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
22 | 24 |
| |
| |||
750 | 752 |
| |
751 | 753 |
| |
752 | 754 |
| |
753 |
| - | |
| 755 | + | |
754 | 756 |
| |
755 | 757 |
| |
756 | 758 |
| |
757 | 759 |
| |
758 | 760 |
| |
759 | 761 |
| |
760 |
| - | |
| 762 | + | |
761 | 763 |
| |
762 | 764 |
| |
763 | 765 |
| |
764 | 766 |
| |
765 |
| - | |
| 767 | + | |
766 | 768 |
| |
767 | 769 |
| |
768 | 770 |
| |
769 | 771 |
| |
770 | 772 |
| |
771 | 773 |
| |
772 | 774 |
| |
773 |
| - | |
| 775 | + | |
774 | 776 |
| |
775 | 777 |
| |
776 | 778 |
| |
| |||
851 | 853 |
| |
852 | 854 |
| |
853 | 855 |
| |
854 |
| - | |
| 856 | + | |
855 | 857 |
| |
856 | 858 |
| |
857 | 859 |
| |
| |||
978 | 980 |
| |
979 | 981 |
| |
980 | 982 |
| |
981 |
| - | |
| 983 | + | |
982 | 984 |
| |
983 | 985 |
| |
984 | 986 |
| |
|
0 commit comments
Comments
(0)