mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-24 06:59:50 -05:00
Add support for signed 24.8 decimal numbers
'fixed' is a signed decimal type which offers a sign bit, 23 bits of integer precision, and 8 bits of decimal precision. This is exposed as an opaque struct with conversion helpers to and from double and int on the C API side. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
c49f632dae
commit
c5aba11acc
6 changed files with 81 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ libwayland_util_la_SOURCES = \
|
|||
wayland-os.h \
|
||||
wayland-private.h
|
||||
|
||||
libwayland_server_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt
|
||||
libwayland_server_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt -lm
|
||||
libwayland_server_la_SOURCES = \
|
||||
wayland-protocol.c \
|
||||
wayland-server.c \
|
||||
|
|
@ -26,7 +26,7 @@ libwayland_server_la_SOURCES = \
|
|||
data-device.c \
|
||||
event-loop.c
|
||||
|
||||
libwayland_client_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt
|
||||
libwayland_client_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt -lm
|
||||
libwayland_client_la_SOURCES = \
|
||||
wayland-protocol.c \
|
||||
wayland-client.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue