source: rtems/cpukit/libcsupport/src/assoclocalbyremotebitfield.c @ c499856

4.115
Last change on this file since c499856 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 517 bytes
Line 
1/*
2 * assoc.c
3 *      rtems assoc routines
4 */
5
6#if HAVE_CONFIG_H
7#include "config.h"
8#endif
9
10#define INSIDE_ASSOC
11
12#include <rtems.h>
13#include <rtems/assoc.h>
14
15#include <string.h>             /* strcat, strcmp */
16
17
18uint32_t   rtems_assoc_local_by_remote_bitfield(
19    const rtems_assoc_t *ap,
20    uint32_t       remote_value
21)
22{
23  uint32_t   b;
24  uint32_t   local_value = 0;
25
26  for (b = 1; b; b <<= 1) {
27    if (b & remote_value)
28      local_value |= rtems_assoc_local_by_remote(ap, b);
29  }
30
31  return local_value;
32}
Note: See TracBrowser for help on using the repository browser.