# US 2022/0035399 A1 · Clock comparator sign control

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

- Number: US 2022/0035399 A1
- Document ID: US20220035399A1
- Status: Published application
- Kind: A1
- Application number: 17/506,235
- Filed: 2021-10-20
- Published: 2022-02-03
- Earliest claimed: 2017-01-19
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Eberhard Engler; Dan F. Greiner; Michel H. T. Hack; Timothy J. Slegel; Joachim von Buttlar
- Web page: https://patentgrep.com/patent/US20220035399A1

## CPC

- G06F 1/14: Time supervision arrangements, e.g. real time clock
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 8/78: {Methods to solve the "Year 2000" [Y2K] problem}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A clock comparator sign control is used in a compare operation. A clock comparator sign control that determines whether unsigned arithmetic or signed arithmetic is to be used in a comparing operation is obtained. The clock comparator sign control is then used in a comparison of a value of a clock comparator and at least a portion of a value of a time-of-day clock to determine whether a selected action is to be recognized.

## Claims

### Claim 1

A computer program product for facilitating processing in a computing environment, said computer program product comprising:
one or more computer readable storage media and program instructions collectively stored on the one or more computer readable storage media to perform a method comprising:
obtaining a clock comparator sign control to be used to determine whether unsigned arithmetic or signed arithmetic is to be used in a comparing operation; and
using the clock comparator sign control in a comparison of a value of a clock comparator and at least a portion of a value of a time-of-day clock to determine whether a selected action is to be recognized.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the using the clock comparator sign control in the comparison results in correctly indicating whether the selected action is to be recognized, regardless of whether the time-of-day clock has overflowed.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein based on the clock comparator sign control being set to a first value, unsigned binary arithmetic is to be used in the comparison, the first value being a default value to provide compatibility for operating systems at various levels.

### Claim 4 (depends on 3)

The computer program product of claim 3, wherein based on the clock comparator sign control being set to a second value, signed binary arithmetic is to be used in the comparison.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein the selected action is an interruption of processing within the computing environment.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the clock comparator is one size and the time-of-day clock is an extended time-of-day clock of a different size than the clock comparator, and wherein the time-of-day clock may overflow.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the clock comparator sign control is located in a control register.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the clock comparator is implemented as a clock comparator register and the time-of-day clock is implemented as a time-of-day clock register.

### Claim 9 (depends on 1)

The computer program product of claim 1, wherein the method further comprises using the clock comparator sign control to specify what constitutes a discontinuity in a compared portion of the time-of-day clock.

### Claim 10

A computer system for facilitating processing in a computing environment, said 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 a clock comparator sign control to be used to determine whether unsigned arithmetic or signed arithmetic is to be used in a comparing operation; and
using the clock comparator sign control in a comparison of a value of a clock comparator and at least a portion of a value of a time-of-day clock to determine whether a selected action is to be recognized.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the using the clock comparator sign control in the comparison results in correctly indicating whether the selected action is to be recognized, regardless of whether the time-of-day clock has overflowed.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein based on the clock comparator sign control being set to a first value, unsigned binary arithmetic is to be used in the comparison, the first value being a default value to provide compatibility for operating systems at various levels.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein based on the clock comparator sign control being set to a second value, signed binary arithmetic is to be used in the comparison.

### Claim 14 (depends on 10)

The computer system of claim 10, wherein the selected action is an interruption of processing within the computing environment.

### Claim 15 (depends on 10)

The computer system of claim 10, wherein the clock comparator is one size and the time-of-day clock is an extended time-of-day clock of a different size than the clock comparator, and wherein the time-of-day clock may overflow.

### Claim 16

A computer-implemented method of facilitating processing in a computing environment, said computer-implemented method comprising:
obtaining, by a processor, a clock comparator sign control to be used to determine whether unsigned arithmetic or signed arithmetic is to be used in a comparing operation; and
using the clock comparator sign control in a comparison of a value of a clock comparator and at least a portion of a value of a time-of-day clock to determine whether a selected action is to be recognized.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein the using the clock comparator sign control in the comparison results in correctly indicating whether the selected action is to be recognized, regardless of whether the time-of-day clock has overflowed.

### Claim 18 (depends on 16)

The computer-implemented method of claim 16, wherein based on the clock comparator sign control being set to a first value, unsigned binary arithmetic is to be used in the comparison, the first value being a default value to provide compatibility for operating systems at various levels.

### Claim 19 (depends on 18)

The computer-implemented method of claim 18, wherein based on the clock comparator sign control being set to a second value, signed binary arithmetic is to be used in the comparison.

### Claim 20 (depends on 16)

The computer-implemented method of claim 16, wherein the clock comparator is one size and the time-of-day clock is an extended time-of-day clock of a different size than the clock comparator, and wherein the time-of-day clock may overflow.
