Overview
- Object ID : 5189 (2025-03-12 21:14:04)
- Author : Chip Gracey
- Content : Code
- Microcontroller : Propeller 2
- Language : SPIN2 PASM2
- Category : Math
- Licence : MIT
Content
These three objects provide the following unsigned functions for 64, 96, and 128-bit integers:
NEGQ() - negate
ADDQ() - add
SUBQ() - subtract
CMPQ() - compare
MAGQ() - magnitude
SHLQ() - shift left
SHRQ() - shift right
MULQ() - multiply
DIVQ() - divide
LOGQ() - log2
EXPQ() - exp2
LongLSB() - extract long via LSB
LongMSB() - extract long via MSB
LongSHL() - left-shift long to make 64/96/128-bit value