mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-24 20:14:28 -04:00
Initial revision
This commit is contained in:
commit
52aa6fdb27
99 changed files with 24846 additions and 0 deletions
42
backend/large.h
Normal file
42
backend/large.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
/* large.h - Handles binary manipulation of large numbers */
|
||||
|
||||
/*
|
||||
libzint - the open source barcode library
|
||||
Copyright (C) 2008 Robin Stuart <zint@hotmail.co.uk>
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
static short int BCD[40] = {
|
||||
0, 0, 0, 0,
|
||||
1, 0, 0, 0,
|
||||
0, 1, 0, 0,
|
||||
1, 1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
1, 0, 1, 0,
|
||||
0, 1, 1, 0,
|
||||
1, 1, 1, 0,
|
||||
0, 0, 0, 1,
|
||||
1, 0, 0, 1 };
|
||||
|
||||
void binary_load(short int reg[], char data[]);
|
||||
void binary_add(short int accumulator[], short int input_buffer[]);
|
||||
void binary_subtract(short int accumulator[], short int input_buffer[]);
|
||||
void shiftdown(short int buffer[]);
|
||||
void shiftup(short int buffer[]);
|
||||
short int islarger(short int accum[], short int reg[]);
|
||||
void hex_dump(short int input_buffer[]);
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue