Emulation Library libgcc.a (libgccM.a / libgccMD.a) (2)
Integral Calculation Functions
Integral calculation
__divsi3
Signed 32-bit integral division
__modsi3
Signed 32-bit remainder calculation
__udivsi3
Unsigned 32-bit integral division
__umodsi3
Unsigned 32-bit remainder calculation
__mulsi3
32-bit multiplication
__divhi3
Signed 16-bit integral division
__modhi3
Signed 16-bit remainder calculation
__udivhi3
Unsigned 16-bit integral division
__umodhi3
Unsigned 16-bit remainder calculation
__mulhi3
16-bit multiplication
Integral shift
__ashlsi3
32-bit arithmetical shift to left
__ashrsi3
32-bit arithmetical shift to right
__lshrsi3
32-bit logical shift to right
__ashlhi3
16-bit arithmetical shift to left
__ashrhi3
16-bit arithmetical shift to right
__lshrhi3
16-bit logical shift to right
Integral comparison
__cmpsi2
comparison (long)
__ucmpsi2
Comparison (unsigned long)
x ← a / b
x ← a % b
x ← a / b
x ← a % b
x ←a * b
x ← a / b
x ←a % b
x ← a / b
x ← a % b
x ← a * b
x ← a << b bits
x ← a >> b bits
x ← a >> b bits
x ← a << b bits
x ← a >> b bits
x ← a >> b bits
x ← 2 | 1 | 0
x ← 2 | 1 | 0
long long Type Calculation Functions
long long type calculation
__muldi3
Signed 64-bit multiplication
__divdi3
Signed 64-bit division
__udivdi3
Unsigned 64-bit division
__moddi3
Signed 64-bit remainder calculation
__umoddi3
Unsigned 64-bit remainder calculation
__negdi2
Sign inversion
long long type shift
__lshrdi3
64-bit logical shift to right
__ashldi3
64-bit arithmetical shift to left
__ashrdi3
64-bit arithmetical shift to right
Type conversion
__fixunsdfdi double → unsigned long long
double → long long
__fixdfdi
__floatdidf
long long → double
__fixunssfdi float → unsigned long long
float → long long
__fixsfdi
long long → float
__floatdisf
long long type comparison
__cmpdi2
Comparison (long long)
__ucmpdi2
Comparison (unsigned long long)
Library
x ← a * b
x ← a / b
x ← a / b
x ← a % b
x ← a % b
x ← -a
x ← a >> b bits
x ← a << b bits
x ← a >> b bits
x ← a
x ← a
x ← a
x ← a
x ← a
x ← a
x ← 2 | 1 | 0
x ← 2 | 1 | 0
Reference
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?