Math functions for H8/300, % operator
Hansjuergen Dreuth
hansjuergen.dreuth@simplify-technologies.de
Wed Jun 23 12:18:00 GMT 1999
Hi,
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.
Hansjuergen
__________________________________________________________________________
Dr. Hansjuergen Dreuth
Simplify Technologies GmbH, Tulpenweg 2, D-35630 Ehringshausen, Germany
Tel.: (+49) (0)6443-811712, FAX: (+49) (0)6443-811716
Email: hansjuergen.dreuth@simplify-technologies.de
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list