/*1bern_modp.cpp: computing isolated Bernoulli numbers modulo p23Copyright (C) 2008, 2009, David Harvey45This file is part of the bernmm package (version 1.1).67bernmm is released under a BSD-style license. See the README file in8the source distribution for details.9*/1011#ifndef BERNMM_BERN_MODP_H12#define BERNMM_BERN_MODP_H131415namespace bernmm {161718/*19Returns B_k mod p, in [0, p), or -1 if B_k is not p-integral.2021PRECONDITIONS:222 <= p < NTL_SP_BOUND, p prime23k >= 024*/25long bern_modp(long p, long k);262728/*29Exported for testing.30*/31long _bern_modp_powg(long p, double pinv, long k);32long _bern_modp_pow2(long p, double pinv, long k);333435};363738#endif3940// end of file ================================================================414243