]> oss.titaniummirror.com Git - rgblamp.git/blobdiff - task.h
These changes save 685 code words
[rgblamp.git] / task.h
diff --git a/task.h b/task.h
index b53640f6ae946965f8d28a485dbf9d76f1898ef2..d08a36307ce65f97b15d44c4e4801f97bc7ed3e1 100644 (file)
--- a/task.h
+++ b/task.h
@@ -41,10 +41,10 @@ extern unsigned long _task_ids;
 extern task_id_t _task_bitno;
 
 /* Post task t.  No need for ndi() since bit_set is a single instruction. */
-#define task_post(t) do { bit_set(_task_ids, t); } while (0)
+#define task_post(t) (bit_set(_task_ids, t))
 
 /* Initialize the task subsystem */
-#define task_init() do { _task_ids = 0; _task_bitno = 0; } while (0)
+#define task_init() (_task_ids = 0)
 
 /* Returns non-zero if one or more tasks are posted.  Does not block. */
 bit task_check();