Changeset 432327d in buchla-68k for ram/addfpu.c
- Timestamp:
- 09/17/2017 09:27:29 PM (7 years ago)
- Branches:
- master
- Children:
- 6099cac
- Parents:
- 8c8b4e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/addfpu.c
r8c8b4e5 r432327d 18 18 uint16_t addfpu(uint16_t t, int16_t k) 19 19 { 20 register int16_t x, z;21 register uint16_t y;20 uint16_t x, y; 21 int32_t z; 22 22 23 23 x = fromfpu(t); … … 27 27 28 28 y = t; 29 z = x + k;29 z = (int32_t)x + k; 30 30 31 31 if (z GE MAXSEGT) … … 46 46 uint16_t subfpu(uint16_t t, int16_t k) 47 47 { 48 register int16_t x, z;49 register uint16_t y;48 uint16_t x, y; 49 int32_t z; 50 50 51 51 x = fromfpu(t); … … 55 55 56 56 y = t; 57 z = x - k;57 z = (int32_t)x - k; 58 58 59 59 if (z LE 1)
Note:
See TracChangeset
for help on using the changeset viewer.