summaryrefslogtreecommitdiff
path: root/util_double_list.h
AgeCommit message (Collapse)AuthorFilesLines
2016-08-02list: fix an issue with android build using clangRob Clark1-1/+1
Sorry, I don't understand the android build system enough to say *which* version of clang this effects, but either "clang-2812033" or "clang-3016494" (probably the later). But when 'sample' is undefined (ie. unitialized variable), the result is not as well defined as it is with gcc. Instead use a typeof() cast with a defined value (ie. zero). This fixes a crash that was reported on android. Reported-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Rob Clark <robclark@freedesktop.org>
2016-07-20list: add first/last entry macrosRob Clark1-0/+6
Signed-off-by: Rob Clark <robclark@freedesktop.org>
2015-08-05drm: consolidate common list implementations (v2)Alex Deucher1-0/+137
This is used by radeon and freedreno and will be used by amdgpu. I looked at switching to libdrm_lists.h, but it's pretty horrible. E.g., DRMLISTFOREACHENTRYSAFE. v2: remove missed list.h from tests/radeon/Makefile.am Signed-off-by: Alex Deucher <alexander.deucher@amd.com>