summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-06-26 22:31:38 +0000
committerriastradh <riastradh@NetBSD.org>2022-06-26 22:31:38 +0000
commit8cfba83eef4e6fd005074dd28b894a21620a788b (patch)
tree1a9a2767f02cab264953fa90cef081b63d9c64a5 /sys/dev/microcode
parent36b6d16a434a2c5cdad2c36e10b218f6f618f11b (diff)
kern: New functions timespecaddok, timespecsubok.
Return false if timespecadd or timespecsub with the same arguments would overflow (possibly in an intermediate calculation), true if OK. Typical usage: sys_wotsit(...) { ... if (!timespecsubok(x, y)) return EINVAL; timespecub(x, y, xydelta); ... }
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions