Modern C approach to memswap after we found issues on ARM architectures with…
Modern C approach to memswap after we found issues on ARM architectures with some compilers with the old version.
Waiting for ARM to confirm if this makes EAGLE_6 run.
Merge request reports
Activity
Yeah, that makes a lot more sense than my implementation... Thanks for fixing this!
LGTM, @pdraper do you want to sanity-check and merge this?
added 1 commit
- 2353133c - restricted the pointers in memswap as the two pointers overlapping is undefined…
assigned to @pdraper
added 1 commit
- b7561072 - Promoted to int_least8_t just in case. This will also match other C11 types…
@pdraper resolved the WIP
Thanks, I see, it seems contradictory that the fixed width ints are optional, but these others aren't, but indeed that is true for C. I think POSIX requires these up to the 32bit size, but the 64bit ones are only required if available (see the stdint.h man page, that is a grab of the standard).
Never worried if we are portable to non-POSIX systems. Anyway happy to leave as it is.
mentioned in commit e6517e6d