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)
 
fixedpt black_scholes (int startidx) __attribute__((always_inline))
 
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 black_scholes(), and 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 81 of file main.c.

References asset_path_fixed_simplified().

Here is the call graph for this function:

◆ black_scholes()

fixedpt black_scholes ( int  startidx)
inline

Definition at line 30 of file main.c.

References asset_path_test(), FIXEDPT_BITS, FIXEDPT_WBITS, OPS_PER_ACCEL, result, seeds, thread_data::startidx, and sum.

Here is the call graph for this function:

◆ main()

int main ( void  )

Definition at line 46 of file main.c.

References __attribute__(), asset_path_test(), black_scholes(), NUM_ACCEL, OPS_PER_ACCEL, result, RUN, and sum.

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