IP Library Granted Patent US 10,324,716
Granted Patent B2
US 10,324,716 · App. 15/449,219 · Granted Jun 18, 2019

Selecting processing based on expected value of selected character

Inventor: Michael K. Gschwind (Chappaqua, NY)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
G06F9/30032G06F9/3005G06F9/30018G06F9/30021G06F9/30174G06F9/3867
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,324,716
App. No.
15/449,219
Granted
Jun 18, 2019
Kind
B2
Abstract

An instruction defined to be a looping instruction is obtained and processed. A determination is made as to whether an obtained selected character is an expected selected character. Based on the obtained selected character being the expected selected character, an execution process is used that includes a sequence of operations to perform an operation, the sequence of operations replacing a loop and providing a non-looping sequence to perform the operation on up to a defined number of units of data. The sequence of operations is configured to repeat one or more times and to terminate based on the obtained selected character. Based on the obtained selected character being different than the expected selected character, an alternate execution process is chosen.

Claims (29)

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 performing a method comprising:

obtaining an instruction to be processed, the instruction defined to be a looping instruction, wherein a loop is configured to repeat a plurality of times to perform an operation on up to a defined number of units of data; and

processing the instruction, the processing comprising:

determining whether an obtained selected character is an expected selected character;

using, based on the obtained selected character being the expected selected character, an execution process that includes a sequence of operations to perform the operation, the sequence of operations replacing the loop and providing a non-looping sequence to perform the operation on up to the defined number of units of data, and wherein the sequence of operations is configured to repeat one or more times and to terminate based on the obtained selected character; and

choosing, based on the obtained selected character being different than the expected selected character, an alternate execution process, wherein the alternate execution process comprises:

replicating the obtained selected character a number of times to provide a replicated character, the number of times equal to the defined number of units of data; and

performing the using, wherein the sequence of operations uses the replicated character.

2. The computer program product of claim 1 , wherein the obtained selected character is a termination character.

3. The computer program product of claim 1 , wherein the obtained selected character is a search-for character.

4. The computer program product of claim 1 , wherein the instruction is a move string instruction.

5. The computer program product of claim 1 , wherein the instruction is a compare string instruction.

6. The computer program product of claim 1 , wherein the instruction is a search string instruction.

7. 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 processor is configured to perform the following comprising:

obtaining an instruction to be processed, the instruction defined to be a looping instruction, wherein a loop is configured to repeat a plurality of times to perform an operation on up to a defined number of units of data; and

processing the instruction, the processing comprising:

determining whether an obtained selected character is an expected selected character;

using, based on the obtained selected character being the expected selected character, an execution process that includes a sequence of operations to perform the operation, the sequence of operations replacing the loop and providing a non-looping sequence to perform the operation on up to the defined number of units of data, and wherein the sequence of operations is configured to repeat one or more times and to terminate based on the obtained selected character; and

choosing, based on the obtained selected character being different than the expected selected character, an alternate execution process, wherein the alternate execution process comprises:

replicating the obtained selected character a number of times to provide a replicated character, the number of times equal to the defined number of units of data; and

performing the using, wherein the sequence of operations uses the replicated character.

8. The computer system of claim 7 , wherein the obtained selected character is a termination character.

9. The computer system of claim 7 , wherein the obtained selected character is a search-for character.

10. The computer system of claim 7 , wherein the instruction is a move string instruction.

11. The computer system of claim 7 , wherein the instruction is a compare string instruction.

12. The computer system of claim 7 , wherein the instruction is a search string instruction.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 3, 2017
From: GSCHWIND, MICHAEL K.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 041463/0201 →
Continuity (1)
Related Publication 20180253305A1 · Sep 6, 2018