INT64 arithmetic in MATLAB

Enables int64 Addition, subtraction, multiplication, division and modulus.

You are now following this Submission

This submission enables the following operations for the int64 and uint64 data types:
* Addition
* Subtraction
* Multiplication (element-wise and matrix)
* Division (element-wise only)
* mod, abs, bitshift

See the published file for more details.

Cite As

Petter (2026). INT64 arithmetic in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/24725-int64-arithmetic-in-matlab), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Operators and Elementary Operations in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.13.0.0

Removed the compiled *.mexw32 and *.mexw64

1.12.0.0

Added colon operator for 1:n constructs

1.11.0.0

Updating according to comments by Jan Simon. Thanks!
Nothing changes for the user except the behaviour of mod(i,0)

1.10.0.0

Added matrix multiplication (not fast compared to double)

1.8.0.0

*Added support for the uint64 datatype as well
*No longer accepts A*B is A and B are matrices
*Added binaries for Windows 64-bit

1.6.0.0

Description update

1.2.0.0

Added support for the bitshift function

1.1.0.0

Update according to suggestions from Bruno Luong: Out out memory check and requiring that the dimensions of the arrays matches exactly (not just number of elements).

1.0.0.0