view modules/integer_length_l @ 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 1f14c6dd175d
children
line wrap: on
line source

Description:
Finds the most significant bit in an 'unsigned long'.

Files:
lib/integer_length.h
lib/integer_length_l.c
m4/longlong.m4

Depends-on:
integer_length

configure.ac:
AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])

Makefile.am:
lib_SOURCES += integer_length_l.c

Include:
"integer_length.h"

License:
LGPLv2+

Maintainer:
all