Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-otp/otp-parity.h @ 6410:e4eb71ae8e96 HEAD
Changed .h ifdef/defines to use <NAME>_H format.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2007 11:31:27 +0300 |
parents | c04189d77a59 |
children | 62cf70991cf2 |
line wrap: on
line source
#ifndef OTP_PARITY_H #define OTP_PARITY_H const unsigned char parity_table[256]; static inline unsigned int otp_parity(unsigned char *data) { unsigned int i, parity = 0; for (i = 0; i < OTP_HASH_SIZE; i++) parity += parity_table[*data++]; return parity & 3; } #endif