repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/interface.h | #ifdef __cplusplus
extern "C" {
#endif
/* General interface for using the compressed index libraries */
#ifndef uchar
#define uchar unsigned char
#endif
#ifndef uint
#define uint unsigned int
#endif
#ifndef ulong
#define ulong unsigned long
#endif
/* Error management */
/* Returns a string describing the er... | 3,639 | 34.339806 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/divsufsort.h | /*
* divsufsort.h for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without ... | 5,442 | 29.071823 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/static_permutation.h | /* static_permutation.h
* Copyright (C) 2008, Francisco Claude, all rights reserved.
*
* Permutation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the ... | 1,599 | 31 | 77 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/LZparser.h | #ifndef __LZPARSER_H__
#define __LZPARSER_H__
#include <cstdio>
class LZparser{
public:
LZparser(char* filename);
virtual ~LZparser();
/* generates the LZ parsing of filename and returns the number of phrases
* creates 3 different files (arrays):
* filename.start (4*le... | 1,103 | 29.666667 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/LZ77_2.h | #ifndef __LZ77_2_H__
#define __LZ77_2_H__
#include "LZparser.h"
#include "RMQ.h"
class LZ77_2: public LZparser{
public:
LZ77_2(char* filename);
virtual ~LZ77_2();
/* generates the LZ parsing of filename and returns the number of phrases
* creates 3 different files (arrays):
... | 960 | 34.592593 | 107 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/LZend.h | #ifndef __LZend_H__
#define __LZend_H__
#include "LZ77.h"
#include "RMQ.h"
#include "static_permutation.h"
class LZend: public LZparser{
public:
LZend(char* filename);
virtual ~LZend();
/* generates the LZ parsing of filename and returns the number of phrases
* creates 3 different... | 1,247 | 30.2 | 94 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/LZ77.h | #ifndef __LZ77_H__
#define __LZ77_H__
#include "LZparser.h"
#include "RMQ.h"
class LZ77: public LZparser{
public:
LZ77(char* filename);
virtual ~LZ77();
/* generates the LZ parsing of filename and returns the number of phrases
* creates 3 different files (arrays):
* fi... | 950 | 34.222222 | 107 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/SAu.c | /* SAu.c
Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
This file contains an implementation of Suffix Array in a uncompressed
form.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free S... | 12,316 | 27.185355 | 130 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/helped.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
helped.c
these routines sort a group of strings which have a common prefix
using induced sorting (if possible) or a deep-sort routine
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
#include <stdlib.h>
#include <string.h... | 21,838 | 38.137993 | 91 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/suftest2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
suftest2.c
Written by G. Manzini using the suftest.c code
by N. Jesper Larsson (Copyright N. Jesper Larsson 1999)
Program to test a suffix sorting function. Reads a sequence of bytes from
a file and calls the deep/shallo... | 14,557 | 29.266112 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/shallow.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
shallow.c
This is the multikey quicksort from bentley-sedgewick modified
so that it stops recursion when depth reaches Shallow_limit
(that is when two or more suffixes have Shallow_limit chars in common).
>>>>>>>>>>>>>>>>>>>>>>>>>>>>... | 17,681 | 30.295575 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/blind2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
string sorting routine based on a blind tree
26-jun-01 ver 1.0
03-jul-01 ver 1.1 (get rid of node header)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "common.h"
/* ========... | 12,408 | 26.698661 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/lcp_aux.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
lcp_aux.c
Ver 1.0 28-apr-2004
Functions for lightweight computation of the LCP array.
Copyright (C) 2004 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is free software; you can redistribute it and/or modify
it under the term... | 9,930 | 33.96831 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/deep2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
deep.c
"deep" sorting routines
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "common.h"
/* ------ external global variables ------- */
extern UChar *Text; ... | 6,736 | 26.72428 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/unbwt.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
unbwt.c
Ver 1.0 6-oct-02
compute the inverse bwt.
The input file must be in the following format:
(bwt) N bytes + (eof position, LSB first) 4 bytes
The procedure currently uses 5N bytes.
Copyright (C) 2002 Giovanni Manzini ... | 8,673 | 27.162338 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/ds.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
ds.c
deep-shallow sorting algorithm. these routines are taken mainly by
Seward's d_copyEQ_u12.c
Buckets are sorted one at a time; when bucket Y is completely sorted
(except for YY) "pointer copying" is used to sort small buckets of ... | 9,364 | 30.32107 | 81 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/testlcp.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
testlcp.c
Ver 1.0 9-dec-03
Ver 1.1 28-apr-04 (uses bwt_aux)
Ver 1.2 28-may-04 (uses lcp_aux)
Test algorithms for computing the lcp array.
Copyright (C) 2004 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is fr... | 9,432 | 29.041401 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/bwt.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bwt.c
Ver 1.0 14-oct-02
compute the bwt using the ds_ssort routines
The output file has the following format:
(bwt) N bytes + (eof position, LSB first) 4 bytes
Copyright (C) 2002 Giovanni Manzini (manzini@mfn.unipmn.it)
This ... | 7,068 | 29.339056 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/lcp_aux.h |
// prototypes of the lcp construction procedures defined in
// bwtlcp.a (source files lcp_aux.c lcp5_aux.c)
// before including this file you must first include bwt_aux.h
int *_lcp_sa2lcp_13n(uint8 *t, int n, int *sa);
int *_lcp_sa2lcp_9125n(uint8 *t, int n, int *sa);
int *_lcp_sa2lcp_9n(uint8 *t, int n, int *sa, int... | 512 | 35.642857 | 62 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/common.h | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
global defintion for the ds suffix-sort algorithm
Giovanni Manzini
2-apr 2001
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
/* ----------- use assertion if DEBUG!=0 ------------- */
#ifndef DEBUG
#define DEBUG 1 /* set DEBUG to 0 to remove ... | 1,434 | 23.322034 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/globals.c | /* *******************************************************************
globals.c
Ver 1.0 14-oct-02
This file contains the definition of the global variables
which can be defined by the user + some relate procedures
******************************************************************* */
#include <stdio.... | 3,873 | 28.12782 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/bwt_aux.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bwt_aux.c
Ver 1.0 3-mar-2004
Functions for computing and transforming various representations
of text and suffix array: t/sa/rank_next/rank_prev/bwt
Copyright (C) 2002 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is free so... | 9,373 | 26.014409 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/sa/ds/bwt_aux.h | #define _BW_ALPHA_SIZE 256
typedef unsigned char uchar;
typedef unsigned char uint8;
typedef int int32;
// ---- struct containing the (uncompressed) bwt
typedef struct {
uchar *bwt;
int size;
int eof_pos;
} bwt_data;
// prototypes of bwt procedures defined in bwtlcp.a
void _bw_sa2bwt(uchar *t, int32 n, int3... | 912 | 31.607143 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/examples/mksary.c | /*
* mksary.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limi... | 5,309 | 26.371134 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/examples/unbwt.c | /*
* unbwt.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limit... | 5,667 | 26.25 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/examples/suftest.c | /*
* suftest.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without lim... | 4,506 | 26.315152 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/examples/sasearch.c | /*
* sasearch.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without li... | 4,424 | 25.656627 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/examples/bwt.c | /*
* bwt.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitat... | 6,248 | 27.276018 | 86 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/lib/utils.c | /*
* utils.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limit... | 9,862 | 24.819372 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/lib/sssort.c | /*
* sssort.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limi... | 24,117 | 28.556373 | 89 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/lib/trsort.c | /*
* trsort.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limi... | 17,794 | 29.315162 | 88 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/lib/divsufsort.c | /*
* divsufsort.c for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without ... | 12,257 | 27.910377 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/include/config.h | /* include/config.h. Generated from config.h.in by configure. */
/* include/config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if ... | 3,745 | 26.955224 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/include/lfs.h | /*
* lfs.h for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitat... | 1,689 | 28.649123 | 68 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/include/divsufsort.h | /*
* divsufsort.h for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without ... | 5,442 | 29.071823 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/libdivsufsort-2.0.1/include/divsufsort_private.h | /*
* divsufsort_private.h for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including ... | 5,672 | 26.274038 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/linker/interface.h |
/**********************************************************************************/
/* General interface for using compressed representations of posting lists */
/* Any alternative representation must implement all these functions */
/**************************************************************... | 4,020 | 31.691057 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/linker/build_il.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "interface.h"
/* only for getTime() */
#include <sys/time.h>
#include <sys/resource.h>
/* macro to detect and notify errors */
#define IFERRORIL(error) {{if (error) { fprintf(stderr, "%s\n", error_il(error)); exit(1); }}}
int read_file(char *f... | 3,517 | 24.492754 | 109 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/interface.h |
/**********************************************************************************/
/* General interface for using compressed representations of posting lists *
/* Any alternative representation must implement all these functions *
/****************************************************************... | 4,023 | 31.715447 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/ilspire07.h | /* only for getTime() */
#include <sys/time.h>
#include <sys/resource.h>
#include "utils/basics.h"
#include "utils/sort_alg.h"
//#include "utils/fileInfo.h"
#include "ilists/ildefconfig.h"
#include "ilists/bc.h"
#include "ilists/qmx_coding.h"
#include "ilists/ildatatypes.h"
#include "ilists/ilerrors.c"
#define DOCid... | 5,694 | 37.221477 | 87 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/utils/bitrankw32int.h | /* bitarray.h
Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foun... | 2,030 | 28.867647 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/utils/basics.h |
// Basics
#ifndef BASICSINCLUDED
#define BASICSINCLUDED
// Includes
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/times.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
// Memory management
#define malloc(n) Malloc(n)
#defi... | 2,571 | 21.964286 | 61 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/utils/sort_alg.c | #include "sort_alg.h"
/** sorting a uint-vector ascending, (O(n^2)) but valid as n<< **/
int simplesortAsc(tsort *V, uint n) {
register uint i,j;
register uint min,tmp;
for (i=0; i< n-1;i++) {
min =i;
for (j=i+1;j<n;j++) {
if ( V[min].key > V[j].key ) min = j;
}
tmp =V[i].key; V[i].key=V[min].key; ... | 1,777 | 21.506329 | 69 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/ilists/qmx_coding.h | //PforDelta.
//Interface by Antonio Fariña (University of A Coruña) in May 2011.
//Cannot compress gaps >= 2^28! (due to S16-limitations).
#ifndef QMX_CODING_H_
#define QMX_CODING_H_
#define QMX_BS2 (512*4)
#include <stdio.h>
//public:
/** compresses the "size" uints in "input".
* the encoded secuence is set ... | 1,148 | 36.064516 | 104 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/ilists/qmx_coding.c | //PforDelta.
//Interface by Antonio Fariña (University of A Coruña) in May 2011.
//Cannot compress gaps >= 2^28! (due to S16-limitations).
#include "qmx_coding.h"
#include "compress_qmx.c"
/* compresses size integers from $input$.
* stores the compressed data in $output$ and returns its size (as numb of uints)
* N... | 1,371 | 28.191489 | 88 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/ilists/ilerrors.c |
/*////////////////
//Error handling//
////////////////*/
/*
char *error_il(int e){
switch(e) {
case 0: return "No error"; break;
case 1: return "Out of memory"; break;
case 30: return "Error reading source posting lists";break;
case 31: return "Empty Source list or incomplete !!";break;
case 40: retu... | 2,558 | 38.369231 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/ilists/bc.h |
#define OFFSET_LOWEST_VALUE (0)
//#define OFFSET_LOWEST_VALUE (1) //AS "ZERO" IS NEVER ENCODED... value OFFSET_LOWEST_VALUE will
//will be encoded as "0"... OFFSET_LOWEST_VALUE +1 as "1", etc.
//const unsigned long TABLABASE[5] = {0,128,16512,2113664,270549120};
////decoding for ETDC
//uint decode ... | 3,054 | 31.849462 | 106 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx/src/ilists/ildatatypes.h |
#ifndef DATA_TYPES_IL_INCLUDED
#define DATA_TYPES_IL_INCLUDED
typedef struct{
//int (*defaultFsearch) (void *ail, uint id, uint value);
int (*defaultIntersect2) (void *ail, uint id1, uint id2, uint *noccs, uint **occs );
int (*defaultIntersectN) (void *ail, uint *ids, uint nids, uint *noccs, uint **occs )... | 2,059 | 36.454545 | 117 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/linker/interface.h | /* interface.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* interface.h: Interface for the representation of compressed inverted lists
* structures. It includes functions to (build, load, save, intersect2_N,...)
* that any of these representations must provide.
*
* Implementation of an re... | 5,356 | 34.013072 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/linker/build_il.c | /* build_il.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* build_il.h: test build program following the interface in "interface.h".
*
* Implementation of an representation of compressed postings lists. It provides
* Culpeper & Moffat skiper structure over postings lists compressed with vby... | 4,705 | 26.360465 | 98 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/interface.h | /* interface.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* interface.h: Interface for the representation of compressed inverted lists
* structures. It includes functions to (build, load, save, intersect2_N,...)
* that any of these representations must provide.
*
* Implementation of an re... | 5,354 | 33.772727 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/ilspire07.h | /* ilspire07.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* ilspire07.h: Implementation of the functions in the interfaz in "interface.h".
*
* Implementation of an representation of compressed postings lists. It provides
* Culpeper & Moffat skiper structure over postings lists compressed w... | 8,653 | 34.178862 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/utils/sort_alg.h | /* sort_alg.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* sort_alg.h: Some comparing funtions for qsort().
*
* Implementation of an representation of compressed postings lists. It provides
* Culpeper & Moffat skiper structure over postings lists compressed with vbyte.
*
* Contact info... | 1,631 | 27.631579 | 82 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/utils/basics.h | /* basics.c
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* basics.c: Basic bitwise operations + bitVector manipulation, and others.
* Original version from pizza-chili code.
* Modified by Antonio Fariña in 2010.
*
* Implementation of an representation of compressed postings lists. It provide... | 3,565 | 26.430769 | 82 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/utils/sort_alg.c | /* sort_alg.c
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* sort_alg.c: Some comparing funtions for qsort().
*
* Implementation of an representation of compressed postings lists. It provides
* Culpeper & Moffat skiper structure over postings lists compressed with vbyte.
*
* Contact info... | 2,916 | 26.518868 | 82 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/utils/basics.c | /* basics.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* basics.h: Basic bitwise operations + bitVector manipulation, and others.
* Original version from pizza-chili code.
* Modified by Antonio Fariña in 2010.
*
* Implementation of an representation of compressed postings lists. It provide... | 2,799 | 24.688073 | 82 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/ilists/ilerrors.c | /* errors.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* errors.h: error handling functions.
* (ideas coming from PizzaChili API).
*
* Implementation of an representation of compressed postings lists. It provides
* Culpeper & Moffat skiper structure over postings lists compressed with v... | 3,758 | 38.15625 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/ilists/bc.h | /* bc.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* bc.h: coding functions for bytecodes.
*
* Implementation of an representation of compressed postings lists. It provides
* Culpeper & Moffat skiper structure over postings lists compressed with vbyte.
*
* Contact info:
* Antonio Fariñ... | 3,497 | 33.633663 | 106 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/ilists/ildatatypes.h | /* ildatatypes.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* ildatatypes.h: definition of the t_il data structure used in ilsandersbc.h
*
* Implementation of an representation of compressed postings lists. It provides
* Culpeper & Moffat skiper structure over postings lists compressed wit... | 3,278 | 37.127907 | 101 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2moffatBitmapSpire.limpiado/src/ilists/ildefconfig.h | /* ildefconfig.h
* Copyright (C) 2011, Antonio Fariña, all rights reserved.
*
* ildefconfig.h: Some default constants used in the compressed representation.
*
* Implementation of an representation of compressed postings lists. It provides
* Culpeper & Moffat skiper structure over postings lists compressed w... | 1,497 | 34.666667 | 82 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/linker/interface.h |
/**********************************************************************************/
/* General interface for using compressed representations of posting lists *
/* Any alternative representation must implement all these functions *
/****************************************************************... | 4,018 | 31.674797 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/linker/farilzma.h | #ifndef LZMA_API_INCLUDED
#define LZMA_API_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef uchar
#define uchar unsigned char
#endif
/******************************************************************************/
/* Public functions */
/******************************... | 2,428 | 31.824324 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/linker/build_il.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "farilzma.h"
#include "interface.h"
/* only for getTime() */
#include <sys/time.h>
#include <sys/resource.h>
/* macro to detect and notify errors */
#define IFERRORIL(error) {{if (error) { fprintf(stderr, "%s\n", error_il(error)); exit(1); }}}... | 3,524 | 24.359712 | 98 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/interface.h |
/**********************************************************************************/
/* General interface for using compressed representations of posting lists *
/* Any alternative representation must implement all these functions *
/****************************************************************... | 4,023 | 31.715447 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/farilzma.h | #ifndef LZMA_API_INCLUDED
#define LZMA_API_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef uchar
#define uchar unsigned char
#endif
/******************************************************************************/
/* Public functions */
/******************************... | 2,428 | 31.824324 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/ilspire07.h | /* only for getTime() */
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <unistd.h> //fork
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/sysinfo.h> //to obtain number of cores
#include "utils/basics.h"
#include "utils/sort_alg.h"
//#include "utils/fileInfo.h"
#incl... | 6,610 | 36.994253 | 107 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/utils/bitrankw32int.h | /* bitarray.h
Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foun... | 2,030 | 28.867647 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/utils/basics.h |
// Basics
#ifndef BASICSINCLUDED
#define BASICSINCLUDED
// Includes
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/times.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
// Memory management
#define malloc(n) Malloc(n)
#defi... | 2,571 | 21.964286 | 61 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/utils/sort_alg.c | #include "sort_alg.h"
/** sorting a uint-vector ascending, (O(n^2)) but valid as n<< **/
int simplesortAsc(tsort *V, uint n) {
register int i,j;
register uint min,tmp;
for (i=0; i< n-1;i++) {
min =i;
for (j=i+1;j<n;j++) {
if ( V[min].key > V[j].key ) min = j;
}
tmp =V[i].key; V[i].key=V[min].key; V... | 1,741 | 21.921053 | 69 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/ilists/ilerrors.c |
/*////////////////
//Error handling//
////////////////*/
/*
char *error_il(int e){
switch(e) {
case 0: return "No error"; break;
case 1: return "Out of memory"; break;
case 30: return "Error reading source posting lists";break;
case 31: return "Empty Source list or incomplete !!";break;
case 40: retu... | 2,558 | 38.369231 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/ilists/bc.h |
#define OFFSET_LOWEST_VALUE (1)
//#define OFFSET_LOWEST_VALUE (1) //AS "ZERO" IS NEVER ENCODED... value OFFSET_LOWEST_VALUE will
//will be encoded as "0"... OFFSET_LOWEST_VALUE +1 as "1", etc.
//const unsigned long TABLABASE[5] = {0,128,16512,2113664,270549120};
////decoding for ETDC
//uint decode ... | 3,054 | 31.849462 | 106 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/src/ilists/ildatatypes.h |
#ifndef DATA_TYPES_IL_INCLUDED
#define DATA_TYPES_IL_INCLUDED
typedef struct{
int (*defaultFsearch) (void *ail, uint id, uint value);
int (*defaultIntersect2) (void *ail, uint id1, uint id2, uint *noccs, uint **occs );
int (*defaultIntersectN) (void *ail, uint *ids, uint nids, uint *noccs, uint **occs );
... | 1,515 | 31.956522 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/farilzma.h | #ifndef LZMA_API_INCLUDED
#define LZMA_API_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef uchar
#define uchar unsigned char
#endif
/******************************************************************************/
/* Public functions */
/******************************... | 2,428 | 31.824324 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/farilzma.h | #ifndef LZMA_API_INCLUDED
#define LZMA_API_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef uchar
#define uchar unsigned char
#endif
/******************************************************************************/
/* Public functions */
/******************************... | 2,428 | 31.824324 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/WEB/LZMA_Alone/LzmaBench.h | // LzmaBench.h
#ifndef __LZMABENCH_H
#define __LZMABENCH_H
#include <stdio.h>
#include "../../../Common/Types.h"
#ifdef EXTERNAL_LZMA
#include "../../UI/Common/LoadCodecs.h"
#endif
struct CBenchInfo
{
UInt64 GlobalTime;
UInt64 GlobalFreq;
UInt64 UserTime;
UInt64 UserFreq;
UInt64 UnpackSize;
UInt64 PackSi... | 1,236 | 24.244898 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/WEB/svn/trunk/Test7Zip/stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0501 // Change this to ... | 521 | 23.857143 | 104 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/WEB/svn/trunk/Lib7Zip/lib7zip.h | #ifndef __LIB_7ZIP_H__
#define __LIB_7ZIP_H__
#include <string>
#include <vector>
#ifndef _WIN32
#define __int64 long long int
typedef std::basic_string<wchar_t> wstring;
typedef std::basic_string<char> string;
#define CLASS_E_CLASSNOTAVAILABLE (0x80040111L)
#define FILE_BEGIN 0
#define FILE_CURRENT ... | 2,539 | 21.678571 | 94 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/WEB/svn/trunk/Lib7Zip/HelperFuncs.h | #ifndef __HELPER_FUNCS_H__
#define __HELPER_FUNCS_H__
#ifndef RBOOLOK
#define RBOOLOK(x) { int __result__ = (x); if (__result__ != 0) return false; }
#endif
#ifndef _WIN32
#define WINAPI
#endif
typedef UInt32 (WINAPI *GetMethodPropertyFunc)(UInt32 index, PROPID propID, PROPVARIANT *value);
typedef UInt32 (WINAPI *Ge... | 1,971 | 36.923077 | 98 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaLib.h | /* LzmaLib.h -- LZMA library interface
2008-08-05
Igor Pavlov
Public domain */
#ifndef __LZMALIB_H
#define __LZMALIB_H
#include "Types.h"
#ifdef __cplusplus
#define MY_EXTERN_C extern "C"
#else
#define MY_EXTERN_C extern
#endif
#define MY_STDAPI MY_EXTERN_C int MY_STD_CALL
#define LZMA_PROPS_SIZE 5
/*
RAM req... | 4,376 | 31.183824 | 112 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzFindMt.h | /* LzFindMt.h -- multithreaded Match finder for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZFINDMT_H
#define __LZFINDMT_H
#include "Threads.h"
#include "LzFind.h"
#define kMtHashBlockSize (1 << 13)
#define kMtHashNumBlocks (1 << 3)
#define kMtHashNumBlocksMask (kMtHashNumBlocks - 1)
#defin... | 2,368 | 23.173469 | 92 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaLib.c | /* LzmaLib.c -- LZMA library wrapper
2008-08-05
Igor Pavlov
Public domain */
#include "LzmaEnc.h"
#include "LzmaDec.h"
#include "Alloc.h"
#include "LzmaLib.h"
static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); }
static void SzFree(void *p, void *address) { p = p; MyFree(address); }
static ISzAl... | 1,478 | 30.468085 | 112 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Bcj2.c | /* Bcj2.c -- Converter for x86 code (BCJ2)
2008-10-04 : Igor Pavlov : Public domain */
#include "Bcj2.h"
#ifdef _LZMA_PROB32
#define CProb UInt32
#else
#define CProb UInt16
#endif
#define IsJcc(b0, b1) ((b0) == 0x0F && ((b1) & 0xF0) == 0x80)
#define IsJ(b0, b1) ((b1 & 0xFE) == 0xE8 || IsJcc(b0, b1))
#define kNumTop... | 3,170 | 22.842105 | 109 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzFind.h | /* LzFind.h -- Match finder for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZFIND_H
#define __LZFIND_H
#include "Types.h"
typedef UInt32 CLzRef;
typedef struct _CMatchFinder
{
Byte *buffer;
UInt32 pos;
UInt32 posLimit;
UInt32 streamPos;
UInt32 lenLimit;
UInt32 cyclicBufferPos;
... | 3,220 | 28.824074 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Threads.c | /* Threads.c -- multithreading library
2008-08-05
Igor Pavlov
Public domain */
#include "Threads.h"
#include <process.h>
static WRes GetError()
{
DWORD res = GetLastError();
return (res) ? (WRes)(res) : 1;
}
WRes HandleToWRes(HANDLE h) { return (h != 0) ? 0 : GetError(); }
WRes BOOLToWRes(BOOL v) { return v ? 0 ... | 3,206 | 28.154545 | 121 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Threads.h | /* Threads.h -- multithreading library
2008-11-22 : Igor Pavlov : Public domain */
#ifndef __7Z_THRESDS_H
#define __7Z_THRESDS_H
#include "Types.h"
typedef struct _CThread
{
HANDLE handle;
} CThread;
#define Thread_Construct(thread) (thread)->handle = NULL
#define Thread_WasCreated(thread) ((thread)->handle != NU... | 1,945 | 27.202899 | 122 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Types.h | /* Types.h -- Basic types
2008-11-23 : Igor Pavlov : Public domain */
#ifndef __7Z_TYPES_H
#define __7Z_TYPES_H
#include <stddef.h>
#ifdef _WIN32
#include <windows.h>
#endif
#define SZ_OK 0
#define SZ_ERROR_DATA 1
#define SZ_ERROR_MEM 2
#define SZ_ERROR_CRC 3
#define SZ_ERROR_UNSUPPORTED 4
#define SZ_ERROR_PARAM 5... | 4,665 | 21.325359 | 87 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/7zCrc.h | /* 7zCrc.h -- CRC32 calculation
2008-03-13
Igor Pavlov
Public domain */
#ifndef __7Z_CRC_H
#define __7Z_CRC_H
#include <stddef.h>
#include "Types.h"
extern UInt32 g_CrcTable[];
void MY_FAST_CALL CrcGenerateTable(void);
#define CRC_INIT_VAL 0xFFFFFFFF
#define CRC_GET_DIGEST(crc) ((crc) ^ 0xFFFFFFFF)
#define CRC_UP... | 531 | 20.28 | 81 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/7zStream.c | /* 7zStream.c -- 7z Stream functions
2008-11-23 : Igor Pavlov : Public domain */
#include <string.h>
#include "Types.h"
SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType)
{
while (size != 0)
{
size_t processed = size;
RINOK(stream->Read(stream, buf, &processed));
if ... | 3,975 | 22.388235 | 86 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaEnc.h | /* LzmaEnc.h -- LZMA Encoder
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZMAENC_H
#define __LZMAENC_H
#include "Types.h"
#define LZMA_PROPS_SIZE 5
typedef struct _CLzmaEncProps
{
int level; /* 0 <= level <= 9 */
UInt32 dictSize; /* (1 << 12) <= dictSize <= (1 << 27) for 32-bit version
... | 2,834 | 37.835616 | 99 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Bra86.c | /* Bra86.c -- Converter for x86 code (BCJ)
2008-10-04 : Igor Pavlov : Public domain */
#include "Bra.h"
#define Test86MSByte(b) ((b) == 0 || (b) == 0xFF)
const Byte kMaskToAllowedStatus[8] = {1, 1, 1, 0, 1, 0, 0, 0};
const Byte kMaskToBitNumber[8] = {0, 1, 2, 2, 3, 3, 3, 3};
SizeT x86_Convert(Byte *data, SizeT size... | 2,184 | 24.406977 | 102 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzHash.h | /* LzHash.h -- HASH functions for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZHASH_H
#define __LZHASH_H
#define kHash2Size (1 << 10)
#define kHash3Size (1 << 16)
#define kHash4Size (1 << 20)
#define kFix3HashSize (kHash2Size)
#define kFix4HashSize (kHash2Size + kHash3Size)
#define kFix5Hash... | 1,962 | 34.690909 | 101 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/7zFile.c | /* 7zFile.c -- File IO
2008-11-22 : Igor Pavlov : Public domain */
#include "7zFile.h"
#ifndef USE_WINDOWS_FILE
#include <errno.h>
#endif
#ifdef USE_WINDOWS_FILE
/*
ReadFile and WriteFile functions in Windows have BUG:
If you Read or Write 64MB or more (probably min_failure_size = 64MB - 32KB + 1)
from/t... | 6,000 | 21.731061 | 94 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/CpuArch.h | /* CpuArch.h
2008-08-05
Igor Pavlov
Public domain */
#ifndef __CPUARCH_H
#define __CPUARCH_H
/*
LITTLE_ENDIAN_UNALIGN means:
1) CPU is LITTLE_ENDIAN
2) it's allowed to make unaligned memory accesses
if LITTLE_ENDIAN_UNALIGN is not defined, it means that we don't know
about these properties of platform.
*/
#if de... | 1,949 | 26.857143 | 104 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzFindMt.c | /* LzFindMt.c -- multithreaded Match finder for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#include "LzHash.h"
#include "LzFindMt.h"
void MtSync_Construct(CMtSync *p)
{
p->wasCreated = False;
p->csWasInitialized = False;
p->csWasEntered = False;
Thread_Construct(&p->thread);
Event_Construct(... | 22,129 | 26.871537 | 132 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Bra.h | /* Bra.h -- Branch converters for executables
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __BRA_H
#define __BRA_H
#include "Types.h"
/*
These functions convert relative addresses to absolute addresses
in CALL instructions to increase the compression ratio.
In:
data - data buffer
size - s... | 1,830 | 29.016393 | 83 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/BraIA64.c | /* BraIA64.c -- Converter for IA-64 code
2008-10-04 : Igor Pavlov : Public domain */
#include "Bra.h"
static const Byte kBranchTable[32] =
{
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
4, 4, 6, 6, 0, 0, 7, 7,
4, 4, 0, 0, 4, 4, 0, 0
};
SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding)
{
... | 1,748 | 24.720588 | 74 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Bra.c | /* Bra.c -- Converters for RISC code
2008-10-04 : Igor Pavlov : Public domain */
#include "Bra.h"
SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding)
{
SizeT i;
if (size < 4)
return 0;
size -= 4;
ip += 8;
for (i = 0; i <= size; i += 4)
{
if (data[i + 3] == 0xEB)
{
UInt32 d... | 3,140 | 22.440299 | 94 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaDec.h | /* LzmaDec.h -- LZMA Decoder
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZMADEC_H
#define __LZMADEC_H
#include "Types.h"
/* #define _LZMA_PROB32 */
/* _LZMA_PROB32 can increase the speed on some CPUs,
but memory usage for CLzmaDec::probs will be doubled in that case */
#ifdef _LZMA_PROB32
#define CLzm... | 6,794 | 29.334821 | 111 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzFind.c | /* LzFind.c -- Match finder for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#include <string.h>
#include "LzFind.h"
#include "LzHash.h"
#define kEmptyHashValue 0
#define kMaxValForNormalize ((UInt32)0xFFFFFFFF)
#define kNormalizeStepMin (1 << 10) /* it must be power of 2 */
#define kNormalizeMask (~(kN... | 19,493 | 24.922872 | 116 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/6.vbyteP7zip_acabadoMerge2yN[Fork]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Archive/7z/7zExtract.h | /* 7zExtract.h -- Extracting from 7z archive
2008-11-23 : Igor Pavlov : Public domain */
#ifndef __7Z_EXTRACT_H
#define __7Z_EXTRACT_H
#include "7zIn.h"
/*
SzExtract extracts file from archive
*outBuffer must be 0 before first call for each new archive.
Extracting cache:
If you need to decompress more th... | 1,357 | 31.333333 | 98 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.