Subject:
|
Re: command framing as seen from kernel/program.lrkey_handler
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sat, 1 Feb 2003 18:02:50 GMT
|
Viewed:
|
3960 times
|
| |
| |
> > > ... brickos ...
> > Sorry to see the source less online than: http://lxr.linux.no/source/
>
> Here's the link:
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/brickos/brickos/kernel/
Cool, thanks. No grep, right?
> there's no fast way to execute
> log2() on the H8 (i.e. no O(1) solution)
Mmmmm. I am curious, if that's ok.
To get log2(xx) in O(1) time we could fetch (p[xx & -xx]) i.e. fetch our choice
of the bytes at offset x 0 1 2 4 8 10 20 40 80 from some p we like.
Merely standard C can't easily express that old idea without misleading the
linker into wasting x81 - 9 bytes, which I gather would be considered expensive
on an H8?
Are Gnu-ism's banned from brickos, or can even Gnu C not express this idea?
> If I'm interpreting your shorthand correctly
> ...
> might be nicer if the remote handler got to decide
> whether it wanted to handle the message keys
Yes yes, thanks for understanding.
Cheers, Pat LaVarre
|
|
Message has 1 Reply:
Message is in Reply To:
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|