X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=Searching.h;fp=Searching.h;h=bed122064c112bcc41afbefa3216d2bf56cd600b;hp=0000000000000000000000000000000000000000;hb=d27548f80fe411fda2ee69c74a24eab4292267e9;hpb=e8d51183acdd2410a38dcf8f0efbf7c30cd6c581 diff --git a/Searching.h b/Searching.h new file mode 100644 index 0000000..bed1220 --- /dev/null +++ b/Searching.h @@ -0,0 +1,86 @@ +// +// Searching.h +// The Cheat +// +// Created by Chaz McGarvey on 12/28/04. +// Copyright 2004 Chaz McGarvey. All rights reserved. +// + +#import + +#import "ThreadedTask.h" +#import "SearchContext.h" + +#import "VMRegion.h" + + +extern __inline__ void ReportSearchProgress( ThreadedTask *task, unsigned iteration, unsigned regions, int *progress ); + + + +/* + * Search iteration functions: + * The first set is the generic one, the other is for strings. + */ + +int SearchIteration( ThreadedTask *task, unsigned iteration ); +int SearchIterationAgain( ThreadedTask *task, unsigned iteration ); +int SearchIterationLastValue( ThreadedTask *task, unsigned iteration ); + +int SearchStringIteration( ThreadedTask *task, unsigned iteration ); +int SearchStringIterationAgain( ThreadedTask *task, unsigned iteration ); +int SearchStringIterationLastValue( ThreadedTask *task, unsigned iteration ); + + +/* + * Compare functions... + * "Function( first, second)" -> "first [operator] second" + */ +BOOL EqualInt64( void const *first, void const *second ); +BOOL EqualInt32( void const *first, void const *second ); +BOOL EqualInt16( void const *first, void const *second ); +BOOL EqualInt8( void const *first, void const *second ); +BOOL EqualUInt64( void const *first, void const *second ); +BOOL EqualUInt32( void const *first, void const *second ); +BOOL EqualUInt16( void const *first, void const *second ); +BOOL EqualUInt8( void const *first, void const *second ); +BOOL EqualFloat( void const *first, void const *second ); +BOOL EqualDouble( void const *first, void const *second ); + +BOOL NotEqualInt64( void const *first, void const *second ); +BOOL NotEqualInt32( void const *first, void const *second ); +BOOL NotEqualInt16( void const *first, void const *second ); +BOOL NotEqualInt8( void const *first, void const *second ); +BOOL NotEqualUInt64( void const *first, void const *second ); +BOOL NotEqualUInt32( void const *first, void const *second ); +BOOL NotEqualUInt16( void const *first, void const *second ); +BOOL NotEqualUInt8( void const *first, void const *second ); +BOOL NotEqualFloat( void const *first, void const *second ); +BOOL NotEqualDouble( void const *first, void const *second ); + +BOOL LessThanInt64( void const *first, void const *second ); +BOOL LessThanInt32( void const *first, void const *second ); +BOOL LessThanInt16( void const *first, void const *second ); +BOOL LessThanInt8( void const *first, void const *second ); +BOOL LessThanUInt64( void const *first, void const *second ); +BOOL LessThanUInt32( void const *first, void const *second ); +BOOL LessThanUInt16( void const *first, void const *second ); +BOOL LessThanUInt8( void const *first, void const *second ); +BOOL LessThanFloat( void const *first, void const *second ); +BOOL LessThanDouble( void const *first, void const *second ); + +BOOL GreaterThanInt64( void const *first, void const *second ); +BOOL GreaterThanInt32( void const *first, void const *second ); +BOOL GreaterThanInt16( void const *first, void const *second ); +BOOL GreaterThanInt8( void const *first, void const *second ); +BOOL GreaterThanUInt64( void const *first, void const *second ); +BOOL GreaterThanUInt32( void const *first, void const *second ); +BOOL GreaterThanUInt16( void const *first, void const *second ); +BOOL GreaterThanUInt8( void const *first, void const *second ); +BOOL GreaterThanFloat( void const *first, void const *second ); +BOOL GreaterThanDouble( void const *first, void const *second ); + +/* Strings are handled by special iteration functions. */ + + +