forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8a934d6
committed
Use isinf builtin for clang, for performance.
When compiling with clang glibc's definition of isinf() ends upleading to and external libc function call. That's because there was abug in the builtin in an old gcc version, and clang claimscompatibility with an older version. That causes clang to bemeasurably slower for floating point heavy workloads than gcc.To fix simply redirect isinf when using clang and clang confirms ithas __builtin_isinf().1 parent266b6ac commit8a934d6
1 file changed
+14
-1
lines changedLines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
346 |
| - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
347 | 360 |
| |
348 | 361 |
| |
349 | 362 |
| |
|
0 commit comments
Comments
(0)