s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 344

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
7 LIBRARY
7.2.3 Integral Calculation Functions
Table 7.2.3.1 below lists the integral calculation functions.
7.2.4 long long Type Calculation Functions
Table 7.2.4.1 below lists the long long type calculation functions.
∗1 The long long comparison function returns the following values according to the result of op1 - op2.
∗2 Bits are scanned for logic 1 beginning with the LSB, and the position of the first bit found with the value 1 is
7-6
Integral calculation
Integral shift
long long type
calculation
long long type shift __lshrdi3
Type conversion
long long type
comparison
Other
Classification
Classification
op1 > op2 → 2
op1 = op2 → 1
op1 < op2 → 0
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:
__divsi3
__modsi3
__udivsi3
__umodsi3
__mulsi3
__divhi3
__modhi3
__udivhi3
__umodhi3
__mulhi3
__ashlsi3
__ashrsi3
__lshrsi3
__ashlhi3
__ashrhi3
__lshrhi3
___adddi3
___subdi3
__muldi3
__divdi3
__udivdi3
__moddi3
__umoddi3
__negdi2
__ashldi3
__ashrdi3
__fixunsdfdi
__fixdfdi
__floatdidf
__fixunssfdi
__fixsfdi
__floatdisf
__cmpdi2
__ucmpdi2
__ffsdi2
Function name
Function name
Table 7.2.4.1 long long type calculation functions
Table 7.2.3.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
Signed 64-bit addition
Signed 64-bit subtraction
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
Bit scan
0
EPSON
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
Functionality
Functionality
x ← a + b
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 ← 64 to 0
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
∗1
∗1
∗2
S5U1C17001C MANUAL

Related parts for s5u1c17001c