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 CCS Technical Support

multiple instances of built-in functions with PCD?

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



Joined: 30 Mar 2010
Posts: 3

View user's profile Send private message

multiple instances of built-in functions with PCD?
PostPosted: Tue Apr 26, 2011 11:42 am     Reply with quote

Hi,

I need to do 32 bit integer multiplies and divides at both interrupt and task time with PCD. But, I can’t have global interrupts disabled at task time in the MULS3232 and DIVS3232A functions generated by the compiler.

Is it possible to tell the compiler to create another instance of these two functions? Or, anybody have 32 bit integer mul/div source available? Smile

Thanks!

Bill
_________________
Bill
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 26, 2011 12:02 pm     Reply with quote

Quote:
Is it possible to tell the compiler to create another instance of these two functions?

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=42118
billpa



Joined: 30 Mar 2010
Posts: 3

View user's profile Send private message

PostPosted: Tue Apr 26, 2011 12:27 pm     Reply with quote

THANK YOU!!!
_________________
Bill
Ttelmah



Joined: 11 Mar 2010
Posts: 19537

View user's profile Send private message

PostPosted: Tue Apr 26, 2011 2:49 pm     Reply with quote

Seriously though, try to work out a way of avoiding the divides!....
Remember that /2,/4 etc., can be done using a shift. It is often possible to scale numbers 'up', using a multiply, and then use one of these. Difference in time is really major. Worth thinking very carefully if you can about this....

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