~ubuntu-branches/ubuntu/lucid/libatomic-ops/lucid

« back to all changes in this revision

Viewing changes to src/atomic_ops/sysdeps/short_acquire_release_volatile.h

  • Committer: Bazaar Package Importer
  • Author(s): Ian Wienand
  • Date: 2008-08-19 14:25:24 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080819142524-2767wsbmg7isqv23
Tags: 1.2+cvs20080819-1
* Update from upstream CVS
* Closes: #495211 -- patch taken upstream, thanks Thiemo!

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#endif
35
35
 
36
36
AO_INLINE unsigned short
37
 
AO_short_load_acquire(volatile unsigned short *p)
 
37
AO_short_load_acquire(const volatile unsigned short *p)
38
38
{
39
39
  unsigned short result = *p;
40
40
  /* A normal volatile load generates an ld.acq         */