fcyc - typedef void*test_funct(void Compute number of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * fcyc.h - prototypes for the routines in fcyc.c that estimate the * time in CPU cycles used by a test function f * * Copyright (c) 2002, R. Bryant and D. O'Hallaron, All rights reserved. * May not be used, modified, or copied without permission. * */ #ifndef _CYC_H #define _CYC_H /* The test function takes a generic pointer as input */
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: typedef void (*test_funct)(void *); /* Compute number of cycles used by test function f */ double fcyc(test_funct f, void* argp); /* Compute number of seconds used by test function f */ double fsecs(test_funct f, void* argp); #endif...
View Full Document

This note was uploaded on 01/24/2012 for the course CS 107 taught by Professor Cain,g during the Spring '08 term at Stanford.

Ask a homework question - tutors are online