xserver/hw/xfree86/os-support/bus
Enrico Weigelt, metux IT consult d8e6511b1b xfree86: use calloc() instead of malloc()
Using calloc() instead of malloc() as preventive measure, so there
never can be any hidden bugs or leaks due uninitialized memory.

The extra cost of using this compiler intrinsic should be practically
impossible to measure - in many cases a good compiler can even deduce
if certain areas really don't need to be zero'd (because they're written
to right after allocation) and create more efficient machine code.

The code pathes in question are pretty cold anyways, so it's probably
not worth even thinking about potential extra runtime costs.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 16:49:57 +02:00
..
Pci.c xfree86: os-support: simplify pci init 2024-06-18 00:41:38 +00:00
Pci.h xfree86: os-support: unexport xf86scanpci() 2025-02-17 18:35:43 +00:00
Sbus.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
nobus.c hw/xfree86: nobus.c shouldn't define a static function 2014-01-12 10:14:51 -08:00
xf86Pci.h xfree86: os-support: unexport xf86scanpci() 2025-02-17 18:35:43 +00:00
xf86Sbus.h Replace all checks for 'linux' macro with '__linux__' 2017-05-11 15:24:05 -04:00