Skip to content

Instantly share code, notes, and snippets.

@AndreiCherniaev
Created January 11, 2024 12:08
Show Gist options
  • Save AndreiCherniaev/5b124fbee06250856c12bb20a28944bc to your computer and use it in GitHub Desktop.
Save AndreiCherniaev/5b124fbee06250856c12bb20a28944bc to your computer and use it in GitHub Desktop.
myAbsSub
//return result of (a-b) without sign
#define myAbsSub(a,b) (a)>(b)? ((a)-(b)) : ((b)-(a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment