artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4435d5
)
drm: Don't treat 0 as -1 in drm_fixp2int_ceil
author
jsg
<jsg@openbsd.org>
Wed, 27 Mar 2024 04:32:19 +0000
(
04:32
+0000)
committer
jsg
<jsg@openbsd.org>
Wed, 27 Mar 2024 04:32:19 +0000
(
04:32
+0000)
From Harry Wentland
bac3d37d2f7cab3d9c42a7c9775c84aee4fa89d9
in linux-6.6.y/6.6.23
cf8837d7204481026335461629b84ac7f4538fa5
in mainline linux
sys/dev/pci/drm/include/drm/drm_fixed.h
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/include/drm/drm_fixed.h
b/sys/dev/pci/drm/include/drm/drm_fixed.h
index
6ea339d
..
0c9f917
100644
(file)
--- a/
sys/dev/pci/drm/include/drm/drm_fixed.h
+++ b/
sys/dev/pci/drm/include/drm/drm_fixed.h
@@
-95,7
+95,7
@@
static inline int drm_fixp2int_round(s64 a)
static inline int drm_fixp2int_ceil(s64 a)
{
- if (a > 0)
+ if (a >
=
0)
return drm_fixp2int(a + DRM_FIXED_ALMOST_ONE);
else
return drm_fixp2int(a - DRM_FIXED_ALMOST_ONE);