This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libm on SH7750.


Hi, all. Thanks for very useful advice in this mailing list, and now I
have another problem.

I want to use math library on SH7750 system. I cannot get correct
result from some math function (sin, cos, and sqrt) in my program. The
result of multiply, division, plus and minus operation for floating
value is correct.

The sh-elf-gcc has several switch for floating operation, then, I
tried some math tests in eCos package with gcc switch -m4, -m4-single,
-m4-single-only.  Result was:


-m4:	     
	     sqrt.c:		passed.
	     cos.c, sin.c:	hang up.

-m4-single:  
	     sqrt.c:		passed.
	     cos.c, sin.c:	torelance error.

-m4-single-only:  
             Cannot compile because of an error "IEEE-style 64-bit
             doubles are required to use the math library"

How can I use math library on SH4? Had anyone made these function work
correctly?

Regards,

				Ryosuke Tajima	
				ryosuke-tajima@mosk.tytlabs.co.jp
				TOYOTA CENTRAL R&D LABS., INC.





	
	     

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]