Logo Search packages:      
Sourcecode: john version File versions  Download package


 * This file is part of John the Ripper password cracker,
 * Copyright (c) 1996-98 by Solar Designer

 * 64 bit integer math functions.

#ifndef _JOHN_MATH_H
#define _JOHN_MATH_H

typedef struct {
      unsigned int lo, hi;
} int64;

extern void add32to64(int64 *dst, unsigned int src);
extern void add64to64(int64 *dst, int64 *src);
extern void neg64(int64 *dst);
extern void mul32by32(int64 *dst, unsigned int m1, unsigned int m2);
extern void mul64by32(int64 *dst, unsigned int m);
extern void pow64of32(int64 *dst, unsigned int x, int n);
extern unsigned int div64by32lo(int64 *src, unsigned int d);
extern void div64by32(int64 *dst, unsigned int d);


Generated by  Doxygen 1.6.0   Back to index