nuttx/libs/libc/stdlib
Xiang Xiao c32b683085 !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support
Every compiler supported by NuttX provides the "long long" types,
so the CONFIG_HAVE_LONG_LONG indirection is no longer useful.
Remove the option from include/nuttx/compiler.h and treat
"long long" as unconditionally available across the OS.

In addition to deleting the guard itself, this commit unconditionally
enables the long-long flavored helpers that used to be gated behind
it:

  - libs/libc/fixedmath: drop the soft-emulated b32/ub32 routines
    in lib_fixedmath.c (-261 lines) and trim the matching
    prototypes, Make.defs and CMakeLists.txt entries; keep only
    the long-long backed implementations.
  - include/sys/endian.h, include/strings.h, libs/libc/string
    /lib_ffsll.c, lib_flsll.c: always expose the 64-bit byte-swap
    and ffsll/flsll variants.
  - libs/libm/libm/lib_llround{,f,l}.c: drop the empty stubs.
  - libs/libc/stdlib (atoll, llabs, lldiv, strtoll/ull, rand48,
    strtold), libs/libc/stream (libvsprintf, libvscanf,
    libbsprintf, ultoa_invert), libs/libc/misc (crc64, crc64emac),
    libs/libc/inttypes/strtoimax, libs/libc/lzf, libs/libc/libc.csv,
    libs/libc/string (memset, vikmemcpy): remove the
    #ifdef CONFIG_HAVE_LONG_LONG branches.
  - include/{stddef.h,stdlib.h,fixedmath.h,sys/epoll.h,cxx/cstdlib,
    nuttx/audio/audio.h,nuttx/crc64.h,nuttx/lib/math.h,
    nuttx/lib/math32.h,nuttx/lib/stdbit.h}: same guard cleanup.
  - drivers/note/note_driver.c, fs/spiffs/src/spiffs.h,
    sched/irq/irq_procfs.c: drop their local guards as well.
  - Documentation/applications/netutils/ntpclient/index.rst:
    refresh the documentation snippet.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-05-19 16:21:28 +08:00
..
CMakeLists.txt libc: improve libc dependencies in case of LIBM_NONE 2025-12-14 17:57:27 -03:00
Kconfig libc: Add Kconfig option to disable hex-string to float parsing 2026-01-08 02:37:21 +08:00
lib_abort.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_abs.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_aligned_alloc.c libc: remove reference to non-existent readme 2025-10-11 17:07:51 -04:00
lib_arc4random.c libc: Fix lib_arc4random.c:111:(.text.arc4random_buf+0x26): undefined reference to `clock_systime_ticks' 2024-10-28 09:23:19 +01:00
lib_atexit.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_atof.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_atoi.c libc: remove reference to non-existent readme 2025-10-11 17:07:51 -04:00
lib_atol.c libc: remove reference to non-existent readme 2025-10-11 17:07:51 -04:00
lib_atoll.c !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
lib_bsearch.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_checkbase.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_div.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_exit.c Revert "libs/libc/stdlib/lib_exit.c: fix multiple definition of __dso_handle in msys2" 2025-07-31 22:10:36 +08:00
lib_getprogname.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_itoa.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_labs.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_ldiv.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_llabs.c !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
lib_lldiv.c !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
lib_mblen.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_mbstowcs.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_mbtowc.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_mkdtemp.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_mkstemp.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_mktemp.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_openpty.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_posix_memalign.c libc: remove reference to non-existent readme 2025-10-11 17:07:51 -04:00
lib_ptsname.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_ptsnamer.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_qsort.c libs/libc/stdlib: migrate to SPDX identifier 2024-12-17 09:36:46 +08:00
lib_rand.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_rand48.c !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
lib_reallocarray.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_realpath.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_srand.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_strtol.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_strtold.c !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
lib_strtoll.c !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
lib_strtoul.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_strtoull.c !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
lib_unlockpt.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_valloc.c libc: remove reference to non-existent readme 2025-10-11 17:07:51 -04:00
lib_wcstombs.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_wctomb.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Make.defs libc: improve libc dependencies in case of LIBM_NONE 2025-12-14 17:57:27 -03:00