What is the SH intrinisc library?

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
bbmario
DCEmu Freak
DCEmu Freak
Posts: 75
Joined: Wed Feb 05, 2014 5:58 am
Has liked: 3 times
Been liked: 2 times

What is the SH intrinisc library?

Post by bbmario » Wed Sep 18, 2019 7:52 pm

I was reading the UrbanChaos source code, specifically the DC parts, and I found out some optimizations like this: https://github.com/dizzy2003/MuckyFoot- ... ix.cpp#L25

Those functions do not exist on the codebase, but searching for the function name on GitHub, I found this: https://github.com/FaucetDC/WincastCE/b ... shsgintr.h

What is it? Is it just a header that targets an ASM function? How can I use those in KOS?
histat
DCEmu Newbie
DCEmu Newbie
Posts: 7
Joined: Sat Mar 16, 2013 2:28 pm
Has liked: 0
Been liked: 0

Re: What is the SH intrinisc library?

Post by histat » Fri Sep 20, 2019 3:05 pm

see http://yam.20to4.net/dreamcast/hints/index.html

I think sega builtin functions.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5427
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 2 times
Been liked: 22 times
Contact:

Re: What is the SH intrinisc library?

Post by BlueCrab » Fri Sep 20, 2019 3:48 pm

These users liked the author BlueCrab for the post:
bbmario
User avatar
bbmario
DCEmu Freak
DCEmu Freak
Posts: 75
Joined: Wed Feb 05, 2014 5:58 am
Has liked: 3 times
Been liked: 2 times

Re: What is the SH intrinisc library?

Post by bbmario » Wed Nov 06, 2019 11:06 am

Thank you for the info!
Post Reply