# US 2018/0095724 A1 · Decimal shift and divide instruction

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0095724 A1
- Document ID: US20180095724A1
- Status: Published application
- Kind: A1
- Application number: 15/281,245
- Filed: 2016-09-30
- Published: 2018-04-05
- Earliest claimed: 2016-09-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jonathan D. Bradbury; Steven R. Carlough; Reid T. Copeland; Silvia Melitta Mueller; Eric M. Schwarz
- Web page: https://patentgrep.com/patent/US20180095724A1

## CPC

- G06F 7/535: Dividing only
- G06F 5/01: for shifting, e.g. justifying, scaling, normalising {(digital stores in which the information is moved stepwise, e.g. shift-registers G11C19/00; digital stores in which the information circulates G11C21/00)}
- G06F 7/4917: {Dividing}
- G06F 2205/003: Reformatting, i.e. changing the format of data representation
- G06F 2207/535: Indexing scheme relating to groups G06F7/535 - G06F7/5375
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An instruction to perform a shift and divide operation is executed. The executing includes shifting a value in a specified direction by a selected amount to provide a dividend, the selected amount being user-defined. The dividend is divided by a divisor to obtain a quotient. At least a subset of the quotient is selected as a result. The result is to be used in processing within the computing environment.

## Claims

### Claim 1

A computer program product for facilitating processing within a computing environment, the computer program product comprising:
a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising:
obtaining an instruction for execution, the instruction to perform a shift and divide operation; and
executing the instruction, the executing comprising:
shifting a value in a specified direction by a selected amount to provide a dividend, the selected amount being user-defined;
dividing the dividend by a divisor to obtain a quotient;
selecting at least a subset of the quotient as a result; and
placing the result in a selected location, the result to be used in processing within the computing environment.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the value is a decimal integer, and the least a subset of the quotient is a selected number of digits of the quotient, the selected number of digits including a number of integer digits and a number of fraction digits.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the executing further comprises:
determining a sign for the result; and
including the sign in the selected location.

### Claim 4 (depends on 3)

The computer program product of claim 3, wherein the determining the sign comprises checking a control provided by the instruction.

### Claim 5 (depends on 4)

The computer program product of claim 4, wherein the control is provided in a mask field of the instruction.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the executing further comprises:
obtaining the value from one or more fields of the instruction;
checking validity of the value; and
performing the shifting, based on the checking indicating the value is valid.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the specified direction is left.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the executing further comprises obtaining the selected amount from a field of the instruction.

### Claim 9 (depends on 1)

The computer program product of claim 1, wherein the selected location is a register, the register being specified using at least one field of the instruction.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the at least one field comprises a register field specifying a register number and an extension field specifying an extension value to be appended to the register number.

### Claim 11

A computer system for facilitating processing within a computing environment, the computer system comprising:
a memory; and
a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising:
obtaining an instruction for execution, the instruction to perform a shift and divide operation; and
executing the instruction, the executing comprising:
shifting a value in a specified direction by a selected amount to provide a dividend, the selected amount being user-defined;
dividing the dividend by a divisor to obtain a quotient;
selecting at least a subset of the quotient as a result; and
placing the result in a selected location, the result to be used in processing within the computing environment.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the value is a decimal integer, and the least a subset of the quotient is a selected number of digits of the quotient, the selected number of digits including a number of integer digits and a number of fraction digits.

### Claim 13 (depends on 11)

The computer system of claim 11, wherein the executing further comprises:
determining a sign for the result; and
including the sign in the selected location.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein the determining the sign comprises checking a control provided by the instruction.

### Claim 15 (depends on 11)

The computer system of claim 11, wherein the executing further comprises obtaining the selected amount from a field of the instruction.

### Claim at position 16

16-20. (canceled)
