[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#171851: More missing math.h prototypes



Hi, I just confirmed that trunc() is missing from /usr/include/math.h.
Furthermore, the following are also missing (referenced from the manpage
of trunc()):
- lrint
- nearbyint
- round

Oddly, these functions do *not* appear in the libc info pages. 
Nevertheless, they are definitely in libm: 

% objdump -T -t /lib/libm-2.3.1.so | egrep trunc\|lrint\|nearbyint\|round
00011b00  w   DF .text  00000092  GLIBC_2.1   lroundf
00009854  w   DF .text  00000154  GLIBC_2.1   round
00017230  w   DF .text  00000022  GLIBC_2.1   nearbyintl
0000b600  w   DF .text  00000103  GLIBC_2.1   lround
00016f90  w   DF .text  00000025  GLIBC_2.1   truncl
00004c3c g    DF .text  0000002d  GLIBC_2.1   fesetround
000101c4  w   DF .text  000000ba  GLIBC_2.1   roundf
000100c0  w   DF .text  00000025  GLIBC_2.1   truncf
000191b0  w   DF .text  0000008d  GLIBC_2.1   lroundl
0000b5f0  w   DF .text  0000000e  GLIBC_2.1   llrint
000099b0  w   DF .text  00000022  GLIBC_2.1   nearbyint
00011ae0  w   DF .text  0000000d  GLIBC_2.1   lrintf
0000b5e0  w   DF .text  0000000d  GLIBC_2.1   lrint
00017094  w   DF .text  00000199  GLIBC_2.1   roundl
00004c28 g    DF .text  00000013  GLIBC_2.1   fegetround
00011b94  w   DF .text  00000109  GLIBC_2.1   llroundf
000191a0  w   DF .text  0000000e  GLIBC_2.1   llrintl
0000b704  w   DF .text  000001c8  GLIBC_2.1   llround
00011af0  w   DF .text  0000000e  GLIBC_2.1   llrintf
00010280  w   DF .text  00000022  GLIBC_2.1   nearbyintf
00019190  w   DF .text  0000000d  GLIBC_2.1   lrintl
00019240  w   DF .text  0000015f  GLIBC_2.1   llroundl
00009750  w   DF .text  00000025  GLIBC_2.1   trunc
%

This is on libc6 2.3.1-8. I'm not sure I understand why they are in the
.so but not in any header files nor in the info docs. Are there some
standard compliance issues here that I'm not aware of?


T

-- 
What do you mean the Internet isn't filled with subliminal messages? What
about all those buttons marked "submit"??



Reply to: