Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: RL78 problem with hardware multiplier/divider accumulator in G13 CPUs with GCC compiler V15.01

$
0
0
A third possibility would be to disable interrupts while doing the multiplication. To do this you could pack the call for multiplication in a macro like this: #define MULTIPLY(IN1, IN2, OUT) \ __builtin_rl78_di ();  \ OUT = IN1 * IN2;  \ __builtin_rl78_ei ();

Viewing all articles
Browse latest Browse all 59170

Trending Articles