mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Integer only print functions support in MUSL
@ 2024-06-12 17:29 Ram Nalamothu (QUIC)
  2024-06-12 18:56 ` Markus Wichmann
  2024-06-13  1:06 ` Rich Felker
  0 siblings, 2 replies; 6+ messages in thread
From: Ram Nalamothu (QUIC) @ 2024-06-12 17:29 UTC (permalink / raw)
  To: musl

Hi,

On the subject line topic, is there a plan for integer only print functions support in MUSL upstream?

The newlib seems to support the same since 2004 [1] and one immediate scenario using this capability is assert function [2] in the C library itself which needs to print only the non-float types.

Applications that use integer only print functions can benefit from this capability in terms of reduced code size by avoiding floating point support implementation in the linked print functions.

I tried a quick search on the mailing list but couldn't find any previous discussions on this topic.
Would it make sense to have the similar support in MUSL as well? Would the community be open to accept patches supporting integer only print functions?

Regards,
Ram

[1] https://sourceware.org/legacy-ml/newlib/2004/msg00577.html
[2] https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=newlib/libc/stdlib/assert.c#l58

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-27  6:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-12 17:29 [musl] Integer only print functions support in MUSL Ram Nalamothu (QUIC)
2024-06-12 18:56 ` Markus Wichmann
2024-06-12 19:21   ` James Y Knight
2024-06-13  1:06 ` Rich Felker
2024-06-13 16:03   ` James Y Knight
2024-06-27  6:15     ` Ram Nalamothu (QUIC)

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).