Blame util/suffix.h

Packit dd4ba5
/*
Packit dd4ba5
 *
Packit dd4ba5
 * Copyright 2014 PMC-Sierra, Inc.
Packit dd4ba5
 *
Packit dd4ba5
 * This program is free software; you can redistribute it and/or
Packit dd4ba5
 * modify it under the terms of the GNU General Public License
Packit dd4ba5
 * as published by the Free Software Foundation; either version 2
Packit dd4ba5
 * of the License, or (at your option) any later version.
Packit dd4ba5
 *
Packit dd4ba5
 * This program is distributed in the hope that it will be useful,
Packit dd4ba5
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit dd4ba5
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit dd4ba5
 * GNU General Public License for more details.
Packit dd4ba5
 *
Packit dd4ba5
 * You should have received a copy of the GNU General Public License
Packit dd4ba5
 * along with this program; if not, write to the Free Software
Packit dd4ba5
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
Packit dd4ba5
 *
Packit dd4ba5
 */
Packit dd4ba5
Packit dd4ba5
/*
Packit dd4ba5
 *
Packit dd4ba5
 *   Author: Logan Gunthorpe
Packit dd4ba5
 *
Packit dd4ba5
 *   Date:   Oct 23 2014
Packit dd4ba5
 *
Packit dd4ba5
 *   Description:
Packit dd4ba5
 *     Functions for dealing with number suffixes
Packit dd4ba5
 *
Packit dd4ba5
 */
Packit dd4ba5
Packit dd4ba5
#ifndef __ARGCONFIG_SUFFIX_H__
Packit dd4ba5
Packit dd4ba5
#include <inttypes.h>
Packit dd4ba5
Packit dd4ba5
const char *suffix_si_get(double *value);
Packit dd4ba5
const char *suffix_binary_get(long long *value);
Packit dd4ba5
const char *suffix_dbinary_get(double *value);
Packit dd4ba5
uint64_t suffix_binary_parse(const char *value);
Packit dd4ba5
Packit dd4ba5
#endif