# US 2026/0064509 A1 · Method and apparatus for error detection in integer data processing

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

- Number: US 2026/0064509 A1
- Document ID: US20260064509A1
- Status: Published application
- Kind: A1
- Application number: 18/822,344
- Filed: 2024-09-02
- Published: 2026-03-05
- Earliest claimed: 2024-09-02
- Inventors: Mark P. Anderson
- Web page: https://patentgrep.com/patent/US20260064509A1

## CPC

- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method of preventing error propagation in variables and memory, including receiving, at an arithmetic logic unit, at least one input formatted in binary according to ones complement encoding, detecting a computation error or an input error associated with the at least one input, and outputting, from the arithmetic logic unit, a binary result with ones filling all positions as a NiN value in response to detecting the computation error or the input error.

## Claims

### Claim 1

An integrated circuit for processing computer variables and logic, comprising:
a first input line from processor registers or memory;
a second input line from the processor registers or memory; and
at least one arithmetic logic unit configured to:
process commands or instructions relating to a first variable from the first input line and relating to a second variable from the second input line, the first variable and the second variable being binary representations encoded in ones complement;
detect an error in computation or input; and
output, based on the detected error in computation or input, a not-an-integer-number (NiN) value represented in ones complement as all ones in every binary position.

### Claim 2 (depends on 1)

The integrated circuit of claim 1, wherein the at least one arithmetic logic unit is configured to detect an error in computation or input by detecting that at least part of the input including the first variable and the second variable is the NiN value.

### Claim 3 (depends on 1)

The integrated circuit of claim 1, wherein the NiN value corresponds to a negative zero value represented in ones complement which is a binary variable having all ones in every binary position.

### Claim 4 (depends on 1)

The integrated circuit of claim 1, wherein the at least one arithmetic logic unit is configured to detect an error in computation or input by detecting an overflow error or underflow error, and wherein the at least one arithmetic logic unit is configured to output the NiN value.

### Claim 5 (depends on 1)

The integrated circuit of claim 1, wherein the at least one arithmetic logic unit is configured to detect an error in computation or input by detecting a type conversion error, and wherein the at least one arithmetic logic unit is configured to output the NiN value.

### Claim 6 (depends on 5)

The integrated circuit of claim 5, wherein the first variable from the first input line and the second variable from the second input line are error free.

### Claim 7 (depends on 1)

The integrated circuit of claim 1, wherein the at least one arithmetic logic unit is configured to detect an error in computation or input by detecting a NiN input.

### Claim 8 (depends on 7)

The integrated circuit of claim 7, wherein the NiN input indicates an uninitialized variable or a prior error in a prior computation being propagated forward.

### Claim 9 (depends on 1)

The integrated circuit of claim 1, the at least one arithmetic logic unit further configured to:
generate a computation result with a valid execution of an instruction using the first variable from the first input line and the second variable from the second input line;
detect that the computation result is all ones in every binary position in ones complement encoding; and
convert the computation result to all zeroes in every binary position which corresponds to positive zero in ones complement encoding.

### Claim 10

An arithmetic logic unit, comprising:
an integrated circuit for processing ones complement binary variables, configured to:
detect a computation error or an input error; and
output a binary result with ones filling all positions as a NiN value indicating an error.

### Claim 11

A method of preventing error propagation in variables and memory, comprising:
receiving, at an arithmetic logic unit, at least one input formatted in binary according to ones complement encoding;
detecting a computation error or an input error associated with the at least one input; and
outputting, from the arithmetic logic unit, a binary result with ones filling all positions as a NiN value in response to detecting the computation error or the input error.

### Claim 12 (depends on 11)

The method of claim 11, wherein detecting the computation error further comprises:
detecting a truncation error in a store command;
detecting a type conversion error; or
an overflow error or underflow error based on an operation performed to the at least one input,
wherein the computation error is a logical error or an arithmetic error.

### Claim 13 (depends on 11)

The method of claim 11, wherein the NiN value is output in response to detecting the computation error.

### Claim 14 (depends on 11)

The method of claim 11, wherein the NiN value corresponds to a negative zero value represented in ones complement.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
receiving at least one further input; and
outputting, from the arithmetic logic unit, a binary result formatted according to twos complement based on the at least one further input,
wherein the at least one input includes a computer instruction selected from a first set of instructions executable by the arithmetic logic unit, the first set of instructions configured to operate on ones complement, and
wherein the at least one further input includes a computer instruction selected from a second set of instructions executable by the arithmetic logic unit, the second set of instructions configured to operate on twos complement, the first set of instructions being different from the second set of instructions.

### Claim 16 (depends on 11)

The method of claim 11, wherein the at least one input is a NiN value indicating an input error or prior error, and wherein the outputting the binary result as a NiN value is performed in response to detecting the input error.

### Claim 17 (depends on 11)

The method of claim 11, wherein detecting the computation error further comprises:
detecting that an arithmetic command results in a wrapping of the binary number that is mathematically incorrect.

### Claim 18 (depends on 11)

The method of claim 11, further comprising:
generating a valid computational result with a valid execution of an instruction using the at least one input;
detecting that the valid computational result is all ones in every binary position in ones complement encoding; and
converting the valid computational result to all zeroes in every binary position which corresponds to positive zero in ones complement encoding.

### Claim 19 (depends on 11)

The method of claim 11, further comprising:
receiving a signed sub-word data store instruction and a register input;
detecting a sign bit of a sub-word being stored that does not match all upper bits of a remaining portion of the register input not being stored; and
outputting a NiN value to a memory storage subsystem to indicate a truncation error at a memory location instructed by the signed sub-word data store instruction.

### Claim 20 (depends on 11)

The method of claim 11, further comprising:
receiving an unsigned sub-word data store instruction and a register input;
detecting that remaining upper bits of the register input that are not being stored are not all zeros; and
outputting a NiN value to a memory storage subsystem to indicate a truncation error at a memory location instructed by the unsigned sub-word data store instruction.
