1) fmod() and %, which is better in the kernel?
2) are there bitewise operators for the kernel? can I use &2 instead of %2?
3)can Template be used in the kernel?
Thank you for answering these questions.
1. The best way to know it is by looking at the ISA generated for Brook+ kernel. ISA looks much simpler for % case.
2. Yes, bit-wise operators are allowed.
3. Brook+ doesn't support templates.
Retrieving data ...