osprey/tools/tests/misaligned.c File Reference

#include <stdio.h>

Include dependency graph for misaligned.c:

Go to the source code of this file.

Data Types

type  foo

Defines

#define SZ   sizeof(TYPE)/ALIGN

Typedefs

typedef long double longdouble

Functions/Subroutines

static void fail (const char *op, int t, void *p)
static void swap (char *p)
static TYPE collect (const char *src)
static void supply (char *src)
static TYPE load (struct foo *f)
static void store (struct foo *f, TYPE v)
int main ()

Variables

struct foo packed
const TYPE val = 1.5


Define Documentation

#define SZ   sizeof(TYPE)/ALIGN

Definition at line 11 of file misaligned.c.


Typedef Documentation

typedef long double longdouble

Definition at line 16 of file misaligned.c.


Function Documentation

static TYPE collect ( const char *  src  )  [static]

static void fail ( const char *  op,
int  t,
void p 
) [static]

Definition at line 28 of file misaligned.c.

References fflush(), and fprintf().

static TYPE load ( struct foo f  )  [static]

int main ( void   ) 

Definition at line 76 of file misaligned.c.

References collect(), f, fail, i, load(), store(), and supply().

static void store ( struct foo f,
TYPE  v 
) [static]

Definition at line 69 of file misaligned.c.

References foo::f, and swap().

static void supply ( char *  src  )  [static]

Definition at line 56 of file misaligned.c.

References memcpy.

Referenced by main().

static void swap ( char *  p  )  [static]

Definition at line 35 of file misaligned.c.


Variable Documentation

const TYPE val = 1.5

Definition at line 25 of file misaligned.c.


Generated on Wed Apr 8 15:58:32 2009 for Open64 by  doxygen 1.5.6