xserver/hw/xfree86/dri2
Enrico Weigelt, metux IT consult 901132b766 xfree86: replace xallocarray() by calloc()
Only key difference that calloc(), in contrast to rellocarray(),
is zero-initializing. The overhead is hard to measure on today's
machines, and it's safer programming practise to always allocate
zero-initialized, so one can't forget to do it explicitly.

Cocci rule:

    @@
    expression COUNT;
    expression LEN;
    @@
    - xallocarray(COUNT,LEN)
    + calloc(COUNT,LEN)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 17:21:44 +02:00
..
pci_ids Remove autotools support 2021-10-27 13:15:40 +03:00
dri2.c xfree86: replace xallocarray() by calloc() 2025-06-12 17:21:44 +02:00
dri2.h xfree86: move private definitions out of dri2.h 2025-02-06 23:51:34 +00:00
dri2_priv.h xfree86: move private definitions out of dri2.h 2025-02-06 23:51:34 +00:00
dri2ext.c xfree86: move private definitions out of dri2.h 2025-02-06 23:51:34 +00:00
dri2int.h Move DRI2 from external module to built-in 2012-07-10 00:31:01 -07:00
meson.build meson: Make driprotos and libdrm optional 2017-05-10 14:43:13 -04:00