xserver/render
Enrico Weigelt, metux IT consult 042604abe9 (1823) render: 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-03 11:37:36 +02:00
..
animcur.c (!1714) render: use CloseScreen hook 2025-06-03 11:37:32 +02:00
filter.c (1823) render: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
glyph.c (1841) render: drop obsolete including of colormapst.h 2025-06-03 11:37:36 +02:00
glyphstr.h render: move private definitions out of public glyphstr.h 2024-03-03 22:54:16 +00:00
glyphstr_priv.h render: fix refcounting of glyphs during ProcRenderAddGlyphs 2024-04-02 19:19:40 -07:00
matrix.c (1841) render: drop obsolete including of colormapst.h 2025-06-03 11:37:36 +02:00
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00
miindex.c (1823) render: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
mipict.c (1823) render: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
mipict.h render: Hide/unexport some implementation details 2015-07-08 16:40:57 -04:00
mirect.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mitrap.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mitri.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
picture.c (1823) render: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
picture.h glamor: fix CbCr format handling 2022-12-01 08:41:57 +00:00
picturestr.h (!1714) render: use CloseScreen hook 2025-06-03 11:37:32 +02:00
picturestr_priv.h rename old symbol PANORAMIX to XINERAMA 2025-02-06 15:51:27 +00:00
render.c (1823) render: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00