CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

24 bit floating point

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Andrew-miksys



Joined: 11 Sep 2007
Posts: 7

View user's profile Send private message

24 bit floating point
PostPosted: Thu Oct 11, 2007 8:14 am     Reply with quote

I am moving some ASM program into C and I need to compress generated code.
Original program use 24 bit floating point aritmetic function and that was absolutely enough.
Is possible to change the precision in compilator?
I wouldn't write this function from the beginnig by myself Confused
Any suggestion/ideas???
Ttelmah
Guest







PostPosted: Thu Oct 11, 2007 8:30 am     Reply with quote

I'm afraid you would have to write your own.
The CCS compiler only supports 32bit floats.
Microchip AN660, has a complete set of 24bit FP routines available. If you search through this forum, you will find a post by me, where I posted some crude 64bit integer routines, which shows how the data types can be handled.

Best Wishes
Andrew-miksys



Joined: 11 Sep 2007
Posts: 7

View user's profile Send private message

PostPosted: Thu Oct 11, 2007 1:20 pm     Reply with quote

I thing will be nice to have a choice 24 or 32bit fl.p aritmetic during compilation. But now... I have to do it Sad
Have anybody seen source of 24bit aritmetic function?
Ttelmah
Guest







PostPosted: Thu Oct 11, 2007 3:13 pm     Reply with quote

As I said, AN660, has complete routines.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group