view modules/roundf @ 40215:88b18d82fa61

crypto/des: Fix undefined behaviour. * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid shift operations on 'int'.
author Bruno Haible <bruno@clisp.org>
date Sat, 09 Mar 2019 22:21:25 +0100
parents 3846767a473f
children
line wrap: on
line source

Description:
roundf() function: round toward nearest, breaking ties away from zero.

Files:
lib/round.c
lib/roundf.c
m4/check-math-lib.m4
m4/roundf.m4
m4/floorf.m4
m4/ceilf.m4

Depends-on:
math
extensions
float           [test $HAVE_ROUNDF = 0 || test $REPLACE_ROUNDF = 1]

configure.ac:
gl_FUNC_ROUNDF
if test $HAVE_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then
  AC_LIBOBJ([roundf])
fi
gl_MATH_MODULE_INDICATOR([roundf])

Makefile.am:

Include:
<math.h>

Link:
$(ROUNDF_LIBM)

License:
LGPL

Maintainer:
Ben Pfaff