source: soft/giet_vm/giet_libs/stdlib.h @ 337

Last change on this file since 337 was 271, checked in by cfuguet, 11 years ago
  • Bugfix: The ISR_SWITCH index should be NB_PROCS_MAX + local_pid. This is because the first NB_PROCS_MAX indexes on the XICU in each cluster are used for the WAKEUP software interrupts.
  • Relocating the memcpy and memset functions into the giet_libs/stdlib.* files.
  • Modification of the sort application to used 8 threads instead of
    1. Modifying the mapping files to distribute the 8 threads on the available processors. (Ex. When using 4 processors, each one executes 2 threads)
File size: 1.1 KB
Line 
1//////////////////////////////////////////////////////////////////////////////////
2// File     : stdlib.h
3// Date     : 05/12/2013
4// Author   : Clément DEVIGNE
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7
8#ifndef _STDLIB_H
9#define _STDLIB_H
10
11int atoi (char * str);
12
13////////////////////////////////////////////////////////////////////////////////////////
14//  mempcy()
15// GCC requires this function. Taken from MutekH.
16////////////////////////////////////////////////////////////////////////////////////////
17void * memcpy(void *_dst, const void * _src, unsigned int size);
18
19////////////////////////////////////////////////////////////////////////////////////////
20//  mempcy()
21// GCC requires this function. Taken from MutekH.
22////////////////////////////////////////////////////////////////////////////////////////
23inline void * memset(void * dst, int s, unsigned int count);
24#endif
25
26// Local Variables:
27// tab-width: 4
28// c-basic-offset: 4
29// c-file-offsets:((innamespace . 0)(inline-open . 0))
30// indent-tabs-mode: nil
31// End:
32// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
Note: See TracBrowser for help on using the repository browser.