Files
ultrasm64-2/lib/n64-libc/n64-stdckdint.h
a 82736c610a git subrepo clone https://gitlab.com/mpharoah/n64-libc lib/n64-libc
subrepo:
  subdir:   "lib/n64-libc"
  merged:   "70270d60"
upstream:
  origin:   "https://gitlab.com/mpharoah/n64-libc"
  branch:   "main"
  commit:   "70270d60"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "4f60dd7"
2025-06-23 20:50:28 -04:00

9 lines
306 B
C

#ifndef N64_STDLIB_N64_STDCKDINT_H_
#define N64_STDLIB_N64_STDCKDINT_H_
#define n64_ckd_add( result, a, b ) __builtin_add_overflow( a, b, result )
#define n64_ckd_sub( result, a, b ) __builtin_sub_overflow( a, b, result )
#define n64_ckd_mul( result, a, b ) __builtin_mul_overflow( a, b, result )
#endif