[PATCH] The pot() function may be hard to understand. Add comment.
Homer Hsing
homer.hsing at gmail.com
Tue May 29 23:06:02 PDT 2012
---
src/cairo-clip-boxes.c | 1 +
src/drm/cairo-drm-intel.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/cairo-clip-boxes.c b/src/cairo-clip-boxes.c
index bbb4197..7b93de6 100644
--- a/src/cairo-clip-boxes.c
+++ b/src/cairo-clip-boxes.c
@@ -52,6 +52,7 @@
#include "cairo-composite-rectangles-private.h"
#include "cairo-region-private.h"
+/* return pow (2, ceil (log2 (v))) */
static inline int
pot (int v)
{
diff --git a/src/drm/cairo-drm-intel.c b/src/drm/cairo-drm-intel.c
index d45155e..6c407d2 100644
--- a/src/drm/cairo-drm-intel.c
+++ b/src/drm/cairo-drm-intel.c
@@ -273,6 +273,7 @@ intel_bo_wait (const intel_device_t *device, const
intel_bo_t *bo)
return ret == 0;
}
+/* return pow (2, ceil (log2 (v))) */
static inline int
pot (int v)
{
--
1.7.9.5
More information about the cairo
mailing list