https://github.com/zapek/libmath64
A SAS/C math linklib with 64-bit support
https://github.com/zapek/libmath64
amiga
Last synced: about 2 months ago
JSON representation
A SAS/C math linklib with 64-bit support
- Host: GitHub
- URL: https://github.com/zapek/libmath64
- Owner: zapek
- License: lgpl-3.0
- Created: 2024-08-23T20:44:08.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T20:51:34.000Z (almost 2 years ago)
- Last Synced: 2025-01-28T03:42:58.976Z (over 1 year ago)
- Topics: amiga
- Language: C
- Homepage: https://zapek.com/software/libmath64/
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libmath64
A SAS/C math linklib with 64-bit support
� 2001-2024 by David Gerber
All Rights Reserved
This is a simple math library with 64-bit support for SAS/C.
It supports 68020+ processors. Support for 68000 is possible
but not planned. 68020-040 instructions are emulated by
68060.library (slow) or patched by something like
CyberPatcher (fast).
## Currently suported
68020-060:
- qtod(): QWORD to double conversion
- uqtoud(): UQWORD to double conversion
- q_add(): QWORD addition
- q_sub(): QWORD substraction
- q_div(): QWORD division
- q_divu(): UQWORD division
- q_div64(): QWORD division with 64-bit result
- q_divu64(): UQWORD division with 64-bit result
- q_mod(): QWORD modulo
- q_modu(): UQWORD modulo
- q_mulu(): ULONG multiplication with 64-bit result
68020-040:
- q_div020(): hardware QWORD division
- q_divu020(): hardware UQWORD division
- q_mod020(): hardware QWORD modulo
- q_mul020(): hardware UQWORD modulo
## Todo
- rewrite the q_div() functions in assembler