Math functions for H8/300, % operator

Hansjuergen Dreuth
Wed Jun 23 12:18:00 GMT 1999

most probably I can live with only float precision on the H8/300H. 
Thanks for the quick response.
Bob Paddock mentioned problems with the % operator. I quickly 
tried the following code piece and found everythink ok (integer i;):

/* check of the % operator */
 for(i=1; i<15; i++) {
  j =  29 % i;
 for(i=1; i<15; i++) {
  j =  30 % i;
 for(i=1; i<15; i++) {
  j =  31 % i;

So at least for these numbers % was allright. I am interested in  
mathematical functions working correctly. So if there are problems,  
please let me know.


Dr. Hansjuergen Dreuth
Simplify Technologies GmbH, Tulpenweg 2, D-35630 Ehringshausen, Germany
Tel.: (+49) (0)6443-811712, FAX: (+49) (0)6443-811716
New CrossGCC FAQ:
To remove yourself from the crossgcc list, send
mail to with the
text 'unsubscribe' (without the quotes) in the
body of the message.

More information about the crossgcc mailing list