Refactor detection of x86 ZMM registers
John Naylor <john.naylor@postgresql.org>
Author:
John Naylor <john.naylor@postgresql.org>
Date: 2026-02-28T09:28:09Z
Releases:
19 (unreleased)
Refactor detection of x86 ZMM registers - Call _xgetbv within x86_set_runtime_features rather than in a separate function - Use symbols for XCR mask bits rather than a magic constant A future commit will build on this to detect YMM registers without code duplication. Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com> Discussion: https://postgr.es/m/CANWCAZbgEUFw7LuYSVeJ=Tj98R5HoOB1Ffeqk3aLvbw5rU5NTw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/port/pg_cpu_x86.c | modified | +27 −16 |
Discussion
- centralize CPU feature detection 13 messages · 2026-02-15 → 2026-02-27