1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/core
Andy Green aadcd3c44a lws_fx: fixed point 3232 arithmetic
This introduces a fixed precision signed 32.32 fractional type that can
work on devices without an FPU.

The integer part works as an int32_t, the fractional part represents the
fractional proportion expressed as part of 100M, so 8 fractional decimal
digit precision which is more than enough for many applications.

Add and Sub are reasonably fast as they are scaled on to a combined
uint64_t, Multiply is a little slower as it takes four uint64_t multiplies
that are summed, and divide is expensive but accurate, done bitwise taking
up to 32 iterations involving uint64_t div and mod.
2022-03-15 10:28:09 +00:00
..
alloc.c alloc: compressed backtrace instrumentation support 2022-03-15 10:28:09 +00:00
buflist.c lws_flow helpers 2022-02-22 14:37:31 +00:00
CMakeLists.txt sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
context.c context_destroy: clean up early fail path 2022-03-15 10:28:09 +00:00
libwebsockets.c lws_fx: fixed point 3232 arithmetic 2022-03-15 10:28:09 +00:00
logs.c logs: lock log context refcount changes 2022-01-26 11:54:08 +00:00
lws_dll2.c dll2: add api for inserting afer existing member 2022-01-04 16:08:50 +00:00
lws_map.c lws_map 2021-08-21 17:44:40 +01:00
private-lib-core.h openssl: support SSLKEYLOGFILE client secret logging 2021-12-13 19:02:49 +00:00
vfs.c file_ops: vfs: support prefix matches and use of bound ops members 2022-03-15 10:28:09 +00:00