PandA-2024.02
Data Structures | Macros | Functions
main.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <pthread.h>
#include "black_scholes.h"
#include "fixedptc.h"
#include "fixedptc.c"
#include "black_scholes.c"
#include "seed.h"
Include dependency graph for main.c:

Go to the source code of this file.

Data Structures

struct  thread_data
 

Macros

#define NUM_ACCEL   4
 
#define RUN   32
 
#define OPS_PER_ACCEL   RUN/NUM_ACCEL
 

Functions

fixedpt asset_path_test (int seed)
 
void * black_scholes (void *threadarg)
 
int main (void)
 

Macro Definition Documentation

◆ NUM_ACCEL

#define NUM_ACCEL   4

Definition at line 8 of file main.c.

Referenced by main().

◆ OPS_PER_ACCEL

#define OPS_PER_ACCEL   RUN/NUM_ACCEL

Definition at line 10 of file main.c.

Referenced by main().

◆ RUN

#define RUN   32

Definition at line 9 of file main.c.

Referenced by main().

Function Documentation

◆ asset_path_test()

fixedpt asset_path_test ( int  seed)

Definition at line 101 of file main.c.

References asset_path_fixed_simplified().

Here is the call graph for this function:

◆ black_scholes()

void* black_scholes ( void *  threadarg)

Definition at line 29 of file main.c.

References test_panda::arg, asset_path_test(), FIXEDPT_BITS, FIXEDPT_WBITS, thread_data::maxidx, result, seeds, thread_data::startidx, and sum.

Here is the call graph for this function:

◆ main()

int main ( void  )

Definition at line 50 of file main.c.

References black_scholes(), thread_data::maxidx, NULL, NUM_ACCEL, OPS_PER_ACCEL, result, RUN, thread_data::startidx, sum, and test_panda::threads.

Here is the call graph for this function:

Generated on Mon Feb 12 2024 13:03:05 for PandA-2024.02 by doxygen 1.8.13