Division is allowed as long as you don't use floats or 64bit longs.

Venky Rama wrote:
> since division is not allowed inside kernel, how does click implement 
> division operations? 
>    
>   i am trying to read the code for RED and it has 
>   RED::set_C1_and_C2() where division seems to be done...?
>    
>   _C2 = (_max_p * _min_thresh) / (_max_thresh - _min_thresh);
>    
>   any guidance will be appreciated. thank you.
>    
>   venky
> 
>               
> ---------------------------------
> Want to be your own boss? Learn how on  Yahoo! Small Business. 
> _______________________________________________
> click mailing list
> [email protected]
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 
_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to