public inbox for ecos-bugs@sourceware.org
help / color / mirror / Atom feed
From: bugzilla-daemon@bugs.ecos.sourceware.org
To: unassigned@bugs.ecos.sourceware.org
Subject: [Bug 1001253] Kernel tests on small memory targets
Date: Tue, 05 Jul 2011 16:09:00 -0000	[thread overview]
Message-ID: <20110705160939.D25832F7800B@mail.ecoscentric.com> (raw)
In-Reply-To: <bug-1001253-777@http.bugs.ecos.sourceware.org/>

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001253

--- Comment #22 from Sergei Gavrikov <sergei.gavrikov@gmail.com> 2011-07-05 17:09:37 BST ---
(In reply to comment #20)

> To me both are obvious. I think it is not necessary explaining max to eCos
> programmer :)
> 
> > #ifndef max
> > #define max(X,Y) ((X) > (Y) ? (X) : (Y))
> > #endif

No, this is not explanation :-) This is a *reminder* that such a check and
definition should be *above* its usage. FYI: there is the same definition
for min() in the test.

> > #define N_THREADS_MAX  ((CYGMEM_REGION_ram_SIZE/16)/CYG_THREAD_OVERHEAD)
> > #define NTEST_THREADS  max(2, N_THREADS_MAX)
> 
> I would change N_THREADS_MAX to somethine other as upper expression
> suggests it needn't be the Max. Maybe N_THREADS_EST (estimated) or
> N_THREADS_MAX_EST.

Then I did correct myself (comment 18) and offer N_THREADS_AVAIL for
naming.

> > and it's all. I dislike to add that `NTEST_2_THR` (may be
> > N_THREADS_MIN) and I've seen no sense to tweak those for loops. What
> > do you think?
> 
> NTEST_2_THR was intended to mean constant 2. If you don't like it we
> can keep the original (bare 2).

As for me "bare 2" is preferred there.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


  parent reply	other threads:[~2011-07-05 16:09 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-31 13:53 [Bug 1001253] New: " bugzilla-daemon
2011-05-31 13:54 ` [Bug 1001253] " bugzilla-daemon
2011-05-31 13:55 ` bugzilla-daemon
2011-05-31 13:55 ` bugzilla-daemon
2011-05-31 13:56 ` bugzilla-daemon
2011-05-31 13:57 ` bugzilla-daemon
2011-05-31 13:58 ` bugzilla-daemon
2011-05-31 13:59 ` bugzilla-daemon
2011-05-31 14:01 ` bugzilla-daemon
2011-06-02 19:06 ` bugzilla-daemon
2011-07-02  9:14 ` bugzilla-daemon
2011-07-02 21:31 ` bugzilla-daemon
2011-07-03  7:47 ` bugzilla-daemon
2011-07-03 15:10 ` bugzilla-daemon
2011-07-04 10:11 ` bugzilla-daemon
2011-07-04 19:57 ` bugzilla-daemon
2011-07-05  8:15 ` bugzilla-daemon
2011-07-05 10:01 ` bugzilla-daemon
2011-07-05 10:16 ` bugzilla-daemon
2011-07-05 10:52 ` bugzilla-daemon
2011-07-05 14:44 ` bugzilla-daemon
2011-07-05 15:09 ` bugzilla-daemon
2011-07-05 16:09 ` bugzilla-daemon [this message]
2011-07-05 17:25 ` bugzilla-daemon
2011-07-06  8:28 ` bugzilla-daemon
2011-07-06  9:07 ` bugzilla-daemon
2011-07-06 12:01 ` bugzilla-daemon
2011-07-06 14:30 ` bugzilla-daemon
2011-07-06 19:00 ` bugzilla-daemon
2011-07-06 19:30 ` bugzilla-daemon
2011-07-09 17:02 ` bugzilla-daemon
2011-07-09 17:15 ` bugzilla-daemon
2011-07-09 17:17 ` bugzilla-daemon
2011-07-09 17:18 ` bugzilla-daemon
2011-07-09 17:20 ` bugzilla-daemon
2011-07-09 17:20 ` bugzilla-daemon
2011-07-09 17:21 ` bugzilla-daemon
2011-07-09 17:25 ` bugzilla-daemon
2011-07-09 19:09 ` bugzilla-daemon
2011-07-10 16:14 ` bugzilla-daemon
2011-07-10 18:12 ` bugzilla-daemon
2011-08-25  8:27 ` bugzilla-daemon
  -- strict thread matches above, loose matches on Subject: below --
2011-05-31 13:53 [Bug 1001253] New: " bugzilla-daemon
2011-05-31 13:54 ` [Bug 1001253] " bugzilla-daemon
2011-05-31 13:55 ` bugzilla-daemon
2011-05-31 13:55 ` bugzilla-daemon
2011-05-31 13:56 ` bugzilla-daemon
2011-05-31 13:57 ` bugzilla-daemon
2011-05-31 13:58 ` bugzilla-daemon
2011-05-31 13:59 ` bugzilla-daemon
2011-05-31 14:01 ` bugzilla-daemon
2011-06-02 19:06 ` bugzilla-daemon
2011-07-02  9:14 ` bugzilla-daemon
2011-07-02 21:32 ` bugzilla-daemon
2011-07-03  7:47 ` bugzilla-daemon
2011-07-03 15:10 ` bugzilla-daemon
2011-07-04 10:11 ` bugzilla-daemon
2011-07-04 19:57 ` bugzilla-daemon
2011-07-05  8:15 ` bugzilla-daemon
2011-07-05 10:01 ` bugzilla-daemon
2011-07-05 10:16 ` bugzilla-daemon
2011-07-05 10:52 ` bugzilla-daemon
2011-07-05 14:44 ` bugzilla-daemon
2011-07-05 15:09 ` bugzilla-daemon
2011-07-05 16:10 ` bugzilla-daemon
2011-07-05 17:25 ` bugzilla-daemon
2011-07-06  8:28 ` bugzilla-daemon
2011-07-06  9:07 ` bugzilla-daemon
2011-07-06 12:01 ` bugzilla-daemon
2011-07-06 14:30 ` bugzilla-daemon
2011-07-06 19:00 ` bugzilla-daemon
2011-07-06 19:30 ` bugzilla-daemon
2011-07-09 17:02 ` bugzilla-daemon
2011-07-09 17:15 ` bugzilla-daemon
2011-07-09 17:17 ` bugzilla-daemon
2011-07-09 17:18 ` bugzilla-daemon
2011-07-09 17:20 ` bugzilla-daemon
2011-07-09 17:20 ` bugzilla-daemon
2011-07-09 17:21 ` bugzilla-daemon
2011-07-09 17:25 ` bugzilla-daemon
2011-07-09 19:09 ` bugzilla-daemon
2011-07-10 16:14 ` bugzilla-daemon
2011-07-10 18:12 ` bugzilla-daemon
2011-08-25  8:27 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110705160939.D25832F7800B@mail.ecoscentric.com \
    --to=bugzilla-daemon@bugs.ecos.sourceware.org \
    --cc=unassigned@bugs.ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).