]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 6 May 2012 01:37:19 +0000 (01:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 6 May 2012 01:37:19 +0000 (01:37 +0000)
MagickCore/thread-private.h

index 97a783a41f885170d6bd0e33d32b025824eff8b5..8094613f4ecc4ba3a305bbe58a4a9c4c33323eac 100644 (file)
@@ -24,16 +24,17 @@ extern "C" {
 
 #include <MagickCore/thread_.h>
 
-#define ThreadThreshold  64
-#define IsConcurrent(columns,rows) \
-  if (((((columns) > ThreadThreshold) || ((rows) > ThreadThreshold))) && \
-      ((MagickSizeType) (columns*rows) > (ThreadThreshold*ThreadThreshold))) \
-   num_threads(GetMagickResourceLimit(ThreadResource))
-#define IsConcurrentExp(columns,rows,expression) \
-  if (((((columns) > ThreadThreshold) || ((rows) > ThreadThreshold))) && \
-      ((MagickSizeType) (columns*rows) > (ThreadThreshold*ThreadThreshold)) && \
-      (expression)) \
-   num_threads(GetMagickResourceLimit(ThreadResource))
+#define IsConcurrentColors(colors,threshold) \
+  if ((colors) > 256) \
+    num_threads(GetMagickResourceLimit(ThreadResource))
+#define IsConcurrentArea(columns,rows,threshold) \
+  if (((((columns) > 64) || ((rows) > 64))) && \
+      ((MagickSizeType) (columns*rows) > (64*64))) \
+    num_threads(GetMagickResourceLimit(ThreadResource))
+#define IsConcurrentAreaExp(columns,rows,threshold,expression) \
+  if (((((columns) > 64) || ((rows) > 64))) && \
+      ((MagickSizeType) (columns*rows) > (64*64)) && (expression)) \
+    num_threads(GetMagickResourceLimit(ThreadResource))
 
 #if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR > 10))
 #define MagickCachePrefetch(address,mode,locality) \