libimg (some funcs) does not EMMS => float/double variables corruption #98

Closed
opened 2025-02-23 10:16:46 +01:00 by rgimad · 0 comments
Owner

img_blend (and maybe others) functions in libimg does not do EMMS after using mmx. So after you call such funcs in your C/C++ etc. program variables of type double become nan garbage. I faced this bug while i worked on my dino game and currenly use this workaround

graphics.c Line 66 in 7c04f4018c
asm_inline("emms");
. It would be good to solve this issue in library itself

img_blend (and maybe others) functions in libimg does not do EMMS after using mmx. So after you call such funcs in your C/C++ etc. program variables of type double become nan garbage. I faced this bug while i worked on my dino game and currenly use this workaround https://git.kolibrios.org/rgimad/dino/src/commit/7c04f4018cac95f860410ea7321f0bca05494d44/graphics.c#L66 . It would be good to solve this issue in library itself
rgimad added the
C
Category/Libraries
labels 2025-02-23 10:16:47 +01:00
dunkaist self-assigned this 2025-02-23 23:00:33 +01:00
dunkaist added reference main 2025-02-24 03:51:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#98
No description provided.