forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6773197
committed
Add MSVC support for pg_leftmost_one_pos32() and friends
To allow testing for general support for fast bitscan intrinsics,add symbols HAVE_BITSCAN_REVERSE and HAVE_BITSCAN_FORWARD.Also do related cleanup in AllocSetFreeIndex(): Previously, wetested for HAVE__BUILTIN_CLZ and copied the relevant internals ofpg_leftmost_one_pos32(), with a special fallback that does lesswork than the general fallback for that function. Now that we havea more general test, we just call pg_leftmost_one_pos32() directlyfor platforms with intrinsic support. On gcc at least, there is nodifference in the binary for non-assert builds.Discussion:https://www.postgresql.org/message-id/CAFBsxsEPc%2BFnX_0vmmQ5DHv60sk4rL_RZJ%2BMD6ei%3D76L0kFMvA%40mail.gmail.com1 parent204b0cb commit6773197
2 files changed
+70
-11
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
292 |
| - | |
| 292 | + | |
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
| |||
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
302 |
| - | |
303 |
| - | |
| 302 | + | |
| 303 | + | |
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
|
Lines changed: 67 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
16 | 31 |
| |
17 | 32 |
| |
18 | 33 |
| |
| |||
27 | 42 |
| |
28 | 43 |
| |
29 | 44 |
| |
| 45 | + | |
| 46 | + | |
| 47 | + | |
30 | 48 |
| |
31 | 49 |
| |
32 |
| - | |
| 50 | + | |
33 | 51 |
| |
34 | 52 |
| |
35 | 53 |
| |
| |||
41 | 59 |
| |
42 | 60 |
| |
43 | 61 |
| |
| 62 | + | |
| 63 | + | |
44 | 64 |
| |
45 | 65 |
| |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
46 | 70 |
| |
47 | 71 |
| |
| 72 | + | |
48 | 73 |
| |
49 | 74 |
| |
50 |
| - | |
| 75 | + | |
51 | 76 |
| |
52 | 77 |
| |
53 | 78 |
| |
| |||
59 | 84 |
| |
60 | 85 |
| |
61 | 86 |
| |
| 87 | + | |
| 88 | + | |
| 89 | + | |
62 | 90 |
| |
63 | 91 |
| |
64 |
| - | |
| 92 | + | |
65 | 93 |
| |
66 | 94 |
| |
67 | 95 |
| |
| |||
73 | 101 |
| |
74 | 102 |
| |
75 | 103 |
| |
| 104 | + | |
| 105 | + | |
76 | 106 |
| |
77 | 107 |
| |
78 | 108 |
| |
| |||
81 | 111 |
| |
82 | 112 |
| |
83 | 113 |
| |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
84 | 119 |
| |
85 | 120 |
| |
| 121 | + | |
86 | 122 |
| |
87 | 123 |
| |
88 |
| - | |
| 124 | + | |
89 | 125 |
| |
90 | 126 |
| |
91 | 127 |
| |
| |||
99 | 135 |
| |
100 | 136 |
| |
101 | 137 |
| |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
102 | 142 |
| |
103 | 143 |
| |
104 |
| - | |
| 144 | + | |
105 | 145 |
| |
106 | 146 |
| |
107 | 147 |
| |
| |||
114 | 154 |
| |
115 | 155 |
| |
116 | 156 |
| |
| 157 | + | |
| 158 | + | |
117 | 159 |
| |
118 | 160 |
| |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
119 | 165 |
| |
120 | 166 |
| |
| 167 | + | |
121 | 168 |
| |
122 | 169 |
| |
123 |
| - | |
| 170 | + | |
124 | 171 |
| |
125 | 172 |
| |
126 | 173 |
| |
| |||
133 | 180 |
| |
134 | 181 |
| |
135 | 182 |
| |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
136 | 187 |
| |
137 | 188 |
| |
138 |
| - | |
| 189 | + | |
139 | 190 |
| |
140 | 191 |
| |
141 | 192 |
| |
| |||
148 | 199 |
| |
149 | 200 |
| |
150 | 201 |
| |
| 202 | + | |
| 203 | + | |
151 | 204 |
| |
152 | 205 |
| |
153 | 206 |
| |
| |||
156 | 209 |
| |
157 | 210 |
| |
158 | 211 |
| |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
159 | 217 |
| |
160 | 218 |
| |
| 219 | + | |
161 | 220 |
| |
162 | 221 |
| |
163 |
| - | |
| 222 | + | |
164 | 223 |
| |
165 | 224 |
| |
166 | 225 |
| |
|
0 commit comments
Comments
(0)