2008-07-14 09:15:55 +12:00
|
|
|
/* large.h - Handles binary manipulation of large numbers */
|
|
|
|
|
|
|
|
/*
|
|
|
|
libzint - the open source barcode library
|
2008-11-17 21:47:42 +13:00
|
|
|
Copyright (C) 2008 Robin Stuart <robin@zint.org.uk>
|
2008-07-14 09:15:55 +12:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2009-06-03 08:23:38 +12:00
|
|
|
#ifndef __LARGE_H
|
|
|
|
#define __LARGE_H
|
2008-07-14 09:15:55 +12:00
|
|
|
|
2009-06-03 08:23:38 +12:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
2008-07-14 09:15:55 +12:00
|
|
|
|
2009-10-07 08:03:00 +13:00
|
|
|
extern void binary_load(short int reg[], char data[], const unsigned int src_len);
|
2009-06-03 08:23:38 +12:00
|
|
|
extern void binary_add(short int accumulator[], short int input_buffer[]);
|
|
|
|
extern void binary_subtract(short int accumulator[], short int input_buffer[]);
|
|
|
|
extern void shiftdown(short int buffer[]);
|
|
|
|
extern void shiftup(short int buffer[]);
|
|
|
|
extern short int islarger(short int accum[], short int reg[]);
|
|
|
|
extern void hex_dump(short int input_buffer[]);
|
2008-07-14 09:15:55 +12:00
|
|
|
|
2009-06-03 08:23:38 +12:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __LARGE_H */
|