Eneboo - Documentación para desarrolladores
|
#include <stdio.h>
#include <openssl/e_os2.h>
#include <signal.h>
#include <time.h>
#include <sys/types.h>
#include <sys/times.h>
#include <openssl/blowfish.h>
#include "bf_enc.c"
'defines' | |
#define | TIMES |
#define | BF_DEFAULT_OPTIONS |
#define | BF_encrypt BF_encrypt_normal |
#define | BF_PTR |
#define | BF_encrypt BF_encrypt_ptr |
#define | BF_PTR2 |
#define | BF_encrypt BF_encrypt_ptr2 |
#define | HZ 100.0 |
#define | BUFSIZE ((long)1024) |
#define | START 0 |
#define | STOP 1 |
#define | print_name(name) fprintf(stderr,"Doing %s %ld times\n",name,cb); |
#define | time_it(func, name, index) |
#define | print_it(name, index) |
#define | COND(d) (count != (d)) |
#define | COUNT(d) (d) |
Funciones | |
double | Time_F (int s) |
int | main (int argc, char **argv) |
Variables | |
long | run = 0 |
#define BF_DEFAULT_OPTIONS |
#define BF_encrypt BF_encrypt_ptr |
#define BF_encrypt BF_encrypt_normal |
#define BF_encrypt BF_encrypt_ptr2 |
#define BF_PTR |
#define BF_PTR2 |
#define BUFSIZE ((long)1024) |
#define COND | ( | d | ) | (count != (d)) |
#define COUNT | ( | d | ) | (d) |
#define HZ 100.0 |
#define print_it | ( | name, | |
index | |||
) |
fprintf(stderr,"%s bytes per sec = %12.2f (%5.1fuS)\n",name, \ tm[index]*8,1.0e6/tm[index]);
#define START 0 |
#define STOP 1 |
#define time_it | ( | func, | |
name, | |||
index | |||
) |
print_name(name); \ Time_F(START); \ for (count=0,run=1; COND(cb); count+=4) \ { \ unsigned long d[2]; \ func(d,&sch); \ func(d,&sch); \ func(d,&sch); \ func(d,&sch); \ } \ tm[index]=Time_F(STOP); \ fprintf(stderr,"%ld %s's in %.2f second\n",count,name,tm[index]); \ tm[index]=((double)COUNT(cb))/tm[index];
#define TIMES |
double Time_F | ( | int | s | ) |
long run = 0 |