1*707c7648Sjmcneill /* $NetBSD: dtv_math.h,v 1.1 2011/08/09 10:53:10 jmcneill Exp $ */ 2*707c7648Sjmcneill 3*707c7648Sjmcneill /*- 4*707c7648Sjmcneill * Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca> 5*707c7648Sjmcneill * All rights reserved. 6*707c7648Sjmcneill * 7*707c7648Sjmcneill * Redistribution and use in source and binary forms, with or without 8*707c7648Sjmcneill * modification, are permitted provided that the following conditions 9*707c7648Sjmcneill * are met: 10*707c7648Sjmcneill * 1. Redistributions of source code must retain the above copyright 11*707c7648Sjmcneill * notice, this list of conditions and the following disclaimer. 12*707c7648Sjmcneill * 2. Redistributions in binary form must reproduce the above copyright 13*707c7648Sjmcneill * notice, this list of conditions and the following disclaimer in the 14*707c7648Sjmcneill * documentation and/or other materials provided with the distribution. 15*707c7648Sjmcneill * 3. All advertising materials mentioning features or use of this software 16*707c7648Sjmcneill * must display the following acknowledgement: 17*707c7648Sjmcneill * This product includes software developed by Jared D. McNeill. 18*707c7648Sjmcneill * 4. Neither the name of The NetBSD Foundation nor the names of its 19*707c7648Sjmcneill * contributors may be used to endorse or promote products derived 20*707c7648Sjmcneill * from this software without specific prior written permission. 21*707c7648Sjmcneill * 22*707c7648Sjmcneill * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 23*707c7648Sjmcneill * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 24*707c7648Sjmcneill * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 25*707c7648Sjmcneill * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 26*707c7648Sjmcneill * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 27*707c7648Sjmcneill * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 28*707c7648Sjmcneill * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29*707c7648Sjmcneill * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30*707c7648Sjmcneill * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31*707c7648Sjmcneill * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32*707c7648Sjmcneill * POSSIBILITY OF SUCH DAMAGE. 33*707c7648Sjmcneill */ 34*707c7648Sjmcneill 35*707c7648Sjmcneill #ifndef _DEV_DTV_DTV_MATH_H 36*707c7648Sjmcneill #define _DEV_DTV_DTV_MATH_H 37*707c7648Sjmcneill 38*707c7648Sjmcneill uint32_t dtv_intlog10(uint32_t); 39*707c7648Sjmcneill 40*707c7648Sjmcneill #endif /* !_DEV_DTV_DTV_MATH_H */ 41