Integral Calculation Functions; Long Long Type Calculation Functions - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

7.2.4 integral Calculation functions

Table 7.2.4.1 below lists the integral calculation functions.
Classification
function name
Integral calculation
__divsi3
__modsi3
__udivsi3
__umodsi3
__mulsi3
__divhi3
__modhi3
__udivhi3
__umodhi3
__mulhi3
Integral shift
__ashlsi3
__ashrsi3
__lshrsi3
__ashlhi3
__ashrhi3
__lshrhi3
Integer comparison
__cmpsi2
__ucmpsi2

7.2.5 long long Type Calculation functions

Table 7.2.5.1 below lists the long long type calculation functions.
Classification
function name
long long type
__muldi3
calculation
__divdi3
__udivdi3
__moddi3
__umoddi3
__negdi2
long long type shift __lshrdi3
__ashldi3
__ashrdi3
Type conversion
__fixunsdfdi
__fixdfdi
__floatdidf
__fixunssfdi
__fixsfdi
__floatdisf
long long type
__cmpdi2
comparison
__ucmpdi2
*1 The integer comparison function and the long long comparison function return the following values based
on the result of op1 – op2.
op1 > op2 → 2
op1 = op2 → 1
op1 < op2 → 0
*2 Bits are scanned for logic 1 beginning with the LSB, and the position of the first bit found with the value 1 is
returned.
If the first bit with the value 1 is the LSB: 1
If the first bit with the value 1 is the MSB: 64
If no bits are found with the value 1:
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
Table 7.2.4.1 Integral calculation functions
Signed 32-bit integral division
Signed 32-bit remainder calculation
Unsigned 32-bit integral division
Unsigned 32-bit remainder calculation
32-bit multiplication
Signed 16-bit integral division
Signed 16-bit remainder calculation
Unsigned 16-bit integral division
Unsigned 16-bit remainder calculation
16-bit multiplication
32-bit arithmetical shift to left
32-bit arithmetical shift to right
32-bit logical shift to right
16-bit arithmetical shift to left
16-bit arithmetical shift to right
16-bit logical shift to right
comparison (long)
Comparison (unsigned long)
Table 7.2.5.1 long long type calculation functions
Signed 64-bit multiplication
Signed 64-bit division
Unsigned 64-bit division
Signed 64-bit remainder calculation
Unsigned 64-bit remainder calculation x ← a % b
Sign inversion
64-bit logical shift to right
64-bit arithmetical shift to left
64-bit arithmetical shift to right
double → unsigned long long
double → long long
long long → double
float → unsigned long long
float → long long
long long → float
Comparison (long long)
Comparison (unsigned long long) x ← 2 | 1 | 0
0
EPSOn
functionality
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
*1
x ← 2 | 1 | 0
*1
functionality
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
*1
*1
7 liBrary
7
Library
7-7

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S5U1C17001C and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents