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

Where are int48 and int64

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



Joined: 20 Mar 2007
Posts: 1
Location: Cheshire,England,UK

View user's profile Send private message

Where are int48 and int64
PostPosted: Mon Oct 18, 2021 8:12 am     Reply with quote

Am I right that int48, int64 are not supported types for the 8 bit micros?
I just cannot see the reason for leaving these types undefined given the high
speeds now attained by the 8 bit Microchip families.
Mark
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Mon Oct 18, 2021 9:30 am     Reply with quote

No, they are only supported on the 16bit micros.
You can use a typedef to create these as an array of bytes or int16's,
but you then have to write your own arithmetic for these. I've done this
in the past for an int24, and int30 type.
On the original 8bit micros, it made sense, since the maths is very bulky.
However on the newer chips with a lot more ROM, and often hardware
mul and div, the libraries can be a lot smaller. Perhaps suggest to CCS
that it might be useful to offer an option to support these.
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Oct 18, 2021 10:55 am     Reply with quote

It should be possible to take Microchip Assembler versions of the math and 'wrap it' or whatever is the real term.... to have a program run it as a 'function'.
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