~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to iocore/cluster/P_ClusterInternal.h

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-12-17 22:28:16 UTC
  • mfrom: (5.1.8 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121217222816-7xwjsx5k76zkb63d
Tags: 3.2.0-1ubuntu1
* Revert FreeBSD strerror_r() fixes that give errors with glibc 2.16.
* Apply patch from Konstantinos Margaritis to define barriers on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
252
252
  inline void SwapBytes()
253
253
  {
254
254
    if (NeedByteSwap()) {
255
 
      swap32(&channel);
256
 
      swap32((uint32_t *) & status);
257
 
      swap32((uint32_t *) & lerrno);
258
 
      swap32(&sequence_number);
 
255
      ats_swap32(&channel);
 
256
      ats_swap32((uint32_t *) & status);
 
257
      ats_swap32((uint32_t *) & lerrno);
 
258
      ats_swap32(&sequence_number);
259
259
    }
260
260
  }
261
261
  ////////////////////////////////////////////////////////////////////////////
295
295
  }
296
296
  inline void SwapBytes()
297
297
  {
298
 
    swap32(&n_ip);
 
298
    ats_swap32(&n_ip);
299
299
  }
300
300
  ////////////////////////////////////////////////////////////////////////////
301
301
};
338
338
  inline void SwapBytes()
339
339
  {
340
340
    if (NeedByteSwap()) {
341
 
      swap32(&channel);
342
 
      swap32(&sequence_number);
343
 
      swap32(&data_type);
 
341
      ats_swap32(&channel);
 
342
      ats_swap32(&sequence_number);
 
343
      ats_swap32(&data_type);
344
344
    }
345
345
  }
346
346
  ////////////////////////////////////////////////////////////////////////////
381
381
  inline void SwapBytes()
382
382
  {
383
383
    if (NeedByteSwap()) {
384
 
      swap32(&channel);
385
 
      swap32(&sequence_number);
386
 
      swap32(&pin_time);
 
384
      ats_swap32(&channel);
 
385
      ats_swap32(&sequence_number);
 
386
      ats_swap32(&pin_time);
387
387
    }
388
388
  }
389
389
  ////////////////////////////////////////////////////////////////////////////
424
424
  inline void SwapBytes()
425
425
  {
426
426
    if (NeedByteSwap()) {
427
 
      swap32(&channel);
428
 
      swap32(&sequence_number);
429
 
      swap32(&disk_priority);
 
427
      ats_swap32(&channel);
 
428
      ats_swap32(&sequence_number);
 
429
      ats_swap32(&disk_priority);
430
430
    }
431
431
  }
432
432
  ////////////////////////////////////////////////////////////////////////////