Hi,
Finally got some time to read the new implementation of table feature.
Compare to the previous code, it is much more clear now, Well done!
Regards,
Bycn82
___
freebsd-ipfw@freebsd.org mailing list
Hi All,
It is using the switch/case statement to make the code clear in the
implementation, so it reminded me the question which I want to ask when I
read the source of ipfw for the first time. It is about the performance of
the switch/case statement. Sure the code of this table feature are
Hi,
On Wed, 29 Oct 2014 22:39:34 +0800
bycn82 byc...@gmail.com wrote:
It is using the switch/case statement to make the code clear in the
I am not a C programmer, so I am not clear how the switch/case will be
optimized by the compiler in FreeBSD. But I used to write a compiler
by myself
Hi,
According to my understanding in Java programming, the compiler will
automatically store the values into a table and jump to the correct one
according to the value only when the condition values are in running
number,
for example.
swtich(a){
case 1: code block 1
case 2: code block 2
case