#undef S64
#undef S256
-static inline void
+static void
arc4_addrandom(struct arc4_stream *as, unsigned char *dat, int datlen)
{
int n;
as->j = as->i;
}
-static inline uint8_t
+static uint8_t
arc4_getbyte(struct arc4_stream *as)
{
uint8_t si, sj;
return (as->s[(si + sj) & 0xff]);
}
-static inline uint32_t
+static uint32_t
arc4_getword(struct arc4_stream *as)
{
uint32_t val;
as->count = 1600000;
}
-static inline void
+static void
arc4_stir_if_needed(struct arc4_stream *as)
{
pid_t pid;
#include <stdint.h>
-static inline void
+static void
be32enc(uint8_t *buf, uint32_t u)
{
buf[3] = (uint8_t)(u & 0xff);
}
-static inline void
+static void
be64enc(uint8_t *buf, uint64_t u)
{
be32enc(buf + sizeof(uint32_t), (uint32_t)(u & 0xffffffffULL));
}
-static inline uint16_t
+static uint16_t
be16dec(const uint8_t *buf)
{
return (uint16_t)(buf[0] << 8 | buf[1]);
}
-static inline uint32_t
+static uint32_t
be32dec(const uint8_t *buf)
{
return (uint32_t)((uint32_t)be16dec(buf) << 16 | be16dec(buf + 2));
}
-static inline uint64_t
+static uint64_t
be64dec(const uint8_t *buf)
{