From bc580dd327b37b38d4f66d5c335b3e9fc12eaac8 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Mon, 2 Feb 2015 17:26:16 -0500 Subject: [PATCH] Configure: lrintl, lroundl, llrintl, llroundl --- Configure | 24 ++++++++++++++++++++++++ Cross/config.sh-arm-linux | 4 ++++ NetWare/config.wc | 4 ++++ Porting/Glossary | 22 ++++++++++++++++++++++ Porting/config.sh | 4 ++++ config_h.SH | 28 ++++++++++++++++++++++++++++ configure.com | 8 ++++++++ plan9/config_sh.sample | 4 ++++ symbian/config.sh | 4 ++++ uconfig.h | 32 ++++++++++++++++++++++++++++++-- uconfig.sh | 4 ++++ uconfig64.sh | 4 ++++ win32/config.ce | 4 ++++ win32/config.gc | 4 ++++ win32/config.vc | 4 ++++ 15 files changed, 152 insertions(+), 2 deletions(-) diff --git a/Configure b/Configure index 6e7d8f1..034104f 100755 --- a/Configure +++ b/Configure @@ -618,7 +618,9 @@ d_lgamma_r='' d_libm_lib_version='' d_link='' d_llrint='' +d_llrintl='' d_llround='' +d_llroundl='' d_localtime_r='' d_localtime_r_needs_tzset='' localtime_r_proto='' @@ -634,7 +636,9 @@ longdblsize='' d_longlong='' longlongsize='' d_lrint='' +d_lrintl='' d_lround='' +d_lroundl='' d_lseekproto='' d_lstat='' d_madvise='' @@ -16016,10 +16020,18 @@ eval $inlibc set llrint d_llrint eval $inlibc +: see if llrintl exists +set llrintl d_llrintl +eval $inlibc + : see if llround exists set llround d_llround eval $inlibc +: see if llroundl exists +set llroundl d_llroundl +eval $inlibc + : see if localtime_r exists set localtime_r d_localtime_r eval $inlibc @@ -16159,10 +16171,18 @@ eval $inlibc set lrint d_lrint eval $inlibc +: see if lrintl exists +set lrintl d_lrintl +eval $inlibc + : see if lround exists set lround d_lround eval $inlibc +: see if lroundl exists +set lroundl d_lroundl +eval $inlibc + : see if prototype for lseek is available echo " " set d_lseekproto lseek $i_systypes sys/types.h $i_unistd unistd.h @@ -23981,7 +24001,9 @@ d_libm_lib_version='$d_libm_lib_version' d_libname_unique='$d_libname_unique' d_link='$d_link' d_llrint='$d_llrint' +d_llrintl='$d_llrintl' d_llround='$d_llround' +d_llroundl='$d_llroundl' d_localtime64='$d_localtime64' d_localtime_r='$d_localtime_r' d_localtime_r_needs_tzset='$d_localtime_r_needs_tzset' @@ -23993,7 +24015,9 @@ d_logb='$d_logb' d_longdbl='$d_longdbl' d_longlong='$d_longlong' d_lrint='$d_lrint' +d_lrintl='$d_lrintl' d_lround='$d_lround' +d_lroundl='$d_lroundl' d_lseekproto='$d_lseekproto' d_lstat='$d_lstat' d_madvise='$d_madvise' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index 6432696..3f39d10 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -332,7 +332,9 @@ d_lgamma_r='undef' d_libm_lib_version='define' d_link='define' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -344,7 +346,9 @@ d_logb='undef' d_longdbl='define' d_longlong='define' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='define' d_lstat='define' d_madvise='define' diff --git a/NetWare/config.wc b/NetWare/config.wc index 1ef2bc2..68df99e 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -321,7 +321,9 @@ d_lgamma_r='undef' d_libm_lib_version='undef' d_link='define' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -333,7 +335,9 @@ d_logb='undef' d_longdbl='define' d_longlong='undef' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='define' d_lstat='undef' d_madvise='undef' diff --git a/Porting/Glossary b/Porting/Glossary index a3b257b..75f67e3 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -1475,11 +1475,22 @@ d_llrint (d_llrint.U): to return the long long value closest to (according to the current rounding mode) to x. +d_llrintl (d_llrintl.U): + This variable conditionally defines the HAS_LLRINTL symbol, which + indicates to the C program that the llrintl() routine is available + to return the long long value closest to (according to the current + rounding mode) to long double x. + d_llround (d_llround.U): This variable conditionally defines the HAS_LLROUND symbol, which indicates to the C program that the llround() routine is available to return the long long value nearest to x. +d_llroundl (d_llroundl.U): + This variable conditionally defines the HAS_LLROUNDL symbol, which + indicates to the C program that the llroundl() routine is available + to return the long long value nearest to long double x. + d_localtime64 (d_timefuncs64.U): This variable conditionally defines the HAS_LOCALTIME64 symbol, which indicates to the C program that the localtime64 () routine is available. @@ -1530,11 +1541,22 @@ d_lrint (d_lrint.U): to return the integral value closest to (according to the current rounding mode) to x. +d_lrintl (d_lrintl.U): + This variable conditionally defines the HAS_LRINTL symbol, which + indicates to the C program that the lrintl() routine is available + to return the integral value closest to (according to the current + rounding mode) to long double x. + d_lround (d_lround.U): This variable conditionally defines the HAS_LROUND symbol, which indicates to the C program that the lround() routine is available to return the integral value nearest to x. +d_lroundl (d_lroundl.U): + This variable conditionally defines the HAS_LROUNDL symbol, which + indicates to the C program that the lroundl() routine is available + to return the integral value nearest to x of the long double argument. + d_lseekproto (d_lseekproto.U): This variable conditionally defines the HAS_LSEEK_PROTO symbol, which indicates to the C program that the system provides diff --git a/Porting/config.sh b/Porting/config.sh index 426a267..3b8b2b2 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -342,7 +342,9 @@ d_libm_lib_version='define' d_libname_unique='undef' d_link='define' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -354,7 +356,9 @@ d_logb='undef' d_longdbl='define' d_longlong='define' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='define' d_lstat='define' d_madvise='define' diff --git a/config_h.SH b/config_h.SH index 2cf870a..75f3952 100755 --- a/config_h.SH +++ b/config_h.SH @@ -3995,12 +3995,26 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_llrint HAS_LLRINT /**/ +/* HAS_LLRINTL: + * This symbol, if defined, indicates that the llrintl routine is + * available to return the closest long long value of the long double + * argument according to the current rounding mode. + */ +#$d_llrintl HAS_LLRINTL /**/ + /* HAS_LLROUND: * This symbol, if defined, indicates that the llround routine is * available to return the nearest long long value. */ #$d_llround HAS_LLROUND /**/ +/* HAS_LLROUNDL: + * This symbol, if defined, indicates that the llroundl routine is + * available to return the nearest long long value of the long double + * argument value. + */ +#$d_llroundl HAS_LLROUNDL /**/ + /* HAS_LOG1P: * This symbol, if defined, indicates that the log1p routine is * available to do the logarithm of 1 plus argument function. @@ -4026,12 +4040,26 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_lrint HAS_LRINT /**/ +/* HAS_LRINTL: + * This symbol, if defined, indicates that the lrintl routine is + * available to return the closest integral value to the long double + * argument according to the current rounding mode. + */ +#$d_lrintl HAS_LRINTL /**/ + /* HAS_LROUND: * This symbol, if defined, indicates that the lround routine is * available to return the nearest integral value. */ #$d_lround HAS_LROUND /**/ +/* HAS_LROUNDL: + * This symbol, if defined, indicates that the lroundl routine is + * available to return the nearest integral value to the long double + * argument. + */ +#$d_lroundl HAS_LROUNDL /**/ + /* HAS_MADVISE: * This symbol, if defined, indicates that the madvise system call is * available to map a file into memory. diff --git a/configure.com b/configure.com index f4dbab3..5636713 100644 --- a/configure.com +++ b/configure.com @@ -3400,7 +3400,9 @@ $ d_log1p = "define" $ d_log2 = "define" $ d_logb = "define" $ d_lrint = "define" +$ d_lrintl = "define" $ d_lround = "define" +$ d_lroundl = "define" $ d_nearbyint = "define" $ d_nextafter = "define" $ d_nexttoward = "define" @@ -3436,7 +3438,9 @@ $ d_log1p = "undef" $ d_log2 = "undef" $ d_logb = "undef" $ d_lrint = "undef" +$ d_lrintl = "undef" $ d_lround = "undef" +$ d_lroundl = "undef" $ d_nearbyint = "undef" $ d_nextafter = "undef" $ d_nexttoward = "undef" @@ -6171,7 +6175,9 @@ $ WC "d_lgamma='" + d_lgamma + "'" $ WC "d_libm_lib_version='undef'" $ WC "d_link='" + d_link + "'" $ WC "d_llrint='undef'" +$ WC "d_llrintl='undef'" $ WC "d_llround='undef'" +$ WC "d_llroundl='undef'" $ WC "d_llseek='undef'" $ WC "d_localtime64='undef'" $ WC "d_locconv='" + d_locconv + "'" @@ -6183,7 +6189,9 @@ $ WC "d_logb='" + d_logb + "'" $ WC "d_longdbl='" + d_longdbl + "'" $ WC "d_longlong='" + d_longlong + "'" $ WC "d_lrint='" + d_lrint + "'" +$ WC "d_lrintl='" + d_lrintl + "'" $ WC "d_lround='" + d_lround + "'" +$ WC "d_lroundl='" + d_lroundl + "'" $ WC "d_lseekproto='define'" $ WC "d_lstat='" + d_lstat + "'" $ WC "d_madvise='undef'" diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index 82a4f16..7387c47 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -332,7 +332,9 @@ d_lgamma_r='undef' d_libm_lib_version='0' d_link='define' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -344,7 +346,9 @@ d_logb='undef' d_longdbl='define' d_longlong='define' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='undef' d_lstat='define' d_madvise='undef' diff --git a/symbian/config.sh b/symbian/config.sh index 7e7cd71..a114f06 100644 --- a/symbian/config.sh +++ b/symbian/config.sh @@ -278,7 +278,9 @@ d_lgamma_r='undef' d_libm_lib_version='undef' d_link='undef' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -290,7 +292,9 @@ d_logb='undef' d_longdbl='undef' d_longlong='undef' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='undef' d_lstat='undef' d_madvise='undef' diff --git a/uconfig.h b/uconfig.h index 189b0fd..af629bd 100644 --- a/uconfig.h +++ b/uconfig.h @@ -3960,12 +3960,26 @@ */ /*#define HAS_LLRINT / **/ +/* HAS_LLRINTL: + * This symbol, if defined, indicates that the llrintl routine is + * available to return the closest long long value of the long double + * argument according to the current rounding mode. + */ +/*#define HAS_LLRINTL / **/ + /* HAS_LLROUND: * This symbol, if defined, indicates that the llround routine is * available to return the nearest long long value. */ /*#define HAS_LLROUND / **/ +/* HAS_LLROUNDL: + * This symbol, if defined, indicates that the llroundl routine is + * available to return the nearest long long value of the long double + * argument value. + */ +/*#define HAS_LLROUNDL / **/ + /* HAS_LOG1P: * This symbol, if defined, indicates that the log1p routine is * available to do the logarithm of 1 plus argument function. @@ -3991,12 +4005,26 @@ */ /*#define HAS_LRINT / **/ +/* HAS_LRINTL: + * This symbol, if defined, indicates that the lrintl routine is + * available to return the closest integral value to the long double + * argument according to the current rounding mode. + */ +/*#define HAS_LRINTL / **/ + /* HAS_LROUND: * This symbol, if defined, indicates that the lround routine is * available to return the nearest integral value. */ /*#define HAS_LROUND / **/ +/* HAS_LROUNDL: + * This symbol, if defined, indicates that the lroundl routine is + * available to return the nearest integral value to the long double + * argument. + */ +/*#define HAS_LROUNDL / **/ + /* HAS_MADVISE: * This symbol, if defined, indicates that the madvise system call is * available to map a file into memory. @@ -5133,6 +5161,6 @@ #endif /* Generated from: - * 45b69f7afc4f5a9118deafae60c017b206cc0acf790bf42c0c80cfe114a06e47 config_h.SH - * 37fcea608869353fa4ba82c931a6a9668f955825992315f17a1500b8bcba2bf8 uconfig.sh + * d654b628ee93a97d86e8830d2d3ba0d822699ba7279c759d3c66e779c56f6675 config_h.SH + * f00aaa095a00a83a70716ff4b9df8a1e7feb27fbb4d9b759d4ca27e6412545b1 uconfig.sh * ex: set ro: */ diff --git a/uconfig.sh b/uconfig.sh index e168f17..5c1632e 100644 --- a/uconfig.sh +++ b/uconfig.sh @@ -271,7 +271,9 @@ d_lgamma_r='undef' d_libm_lib_version='undef' d_link='undef' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -283,7 +285,9 @@ d_logb='undef' d_longdbl='undef' d_longlong='undef' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='undef' d_lstat='undef' d_madvise='undef' diff --git a/uconfig64.sh b/uconfig64.sh index 76cbbb0..3d5b0e5 100644 --- a/uconfig64.sh +++ b/uconfig64.sh @@ -272,7 +272,9 @@ d_lgamma_r='undef' d_libm_lib_version='undef' d_link='undef' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -284,7 +286,9 @@ d_logb='undef' d_longdbl='undef' d_longlong='undef' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='undef' d_lstat='undef' d_madvise='undef' diff --git a/win32/config.ce b/win32/config.ce index 34e4a71..c0c7452 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -319,7 +319,9 @@ d_lgamma_r='undef' d_libm_lib_version='undef' d_link='define' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -331,7 +333,9 @@ d_logb='undef' d_longdbl='undef' d_longlong='undef' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='define' d_lstat='undef' d_madvise='undef' diff --git a/win32/config.gc b/win32/config.gc index 55931f1..758e02d 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -319,7 +319,9 @@ d_lgamma_r='undef' d_libm_lib_version='undef' d_link='define' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -331,7 +333,9 @@ d_logb='undef' d_longdbl='define' d_longlong='define' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='define' d_lstat='undef' d_madvise='undef' diff --git a/win32/config.vc b/win32/config.vc index 13d5dd9..ecfe970 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -319,7 +319,9 @@ d_lgamma_r='undef' d_libm_lib_version='undef' d_link='define' d_llrint='undef' +d_llrintl='undef' d_llround='undef' +d_llroundl='undef' d_localtime64='undef' d_localtime_r='undef' d_localtime_r_needs_tzset='undef' @@ -331,7 +333,9 @@ d_logb='undef' d_longdbl='define' d_longlong='undef' d_lrint='undef' +d_lrintl='undef' d_lround='undef' +d_lroundl='undef' d_lseekproto='define' d_lstat='undef' d_madvise='undef' -- 1.8.3.1