Changeset 099cdd5 in rtems


Ignore:
Timestamp:
Jun 17, 2010, 10:04:51 PM (9 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, master
Children:
1ada616
Parents:
ca8c50de
Message:

2010-06-18 Chris Johns <chrisj@…>

  • libfs/src/rfs/rtems-rfs-file-block.c: Clean up uint64_t maths.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rca8c50de r099cdd5  
     12010-06-18      Chris Johns <chrisj@rtems.org>
     2
     3        * libfs/src/rfs/rtems-rfs-file-block.c: Clean up uint64_t maths.
     4
    152010-06-18      Chris Johns <chrisj@rtems.org>
    26
  • cpukit/libfs/src/rfs/rtems-rfs-block.c

    rca8c50de r099cdd5  
    8989{
    9090  uint32_t offset;
     91  uint64_t block_size;
    9192  if (size->count == 0)
    9293    return 0;
     
    9596  else
    9697    offset = size->offset;
    97   return (((uint64_t) (size->count - 1)) * rtems_rfs_fs_block_size (fs)) + offset;
     98  block_size = rtems_rfs_fs_block_size (fs);
     99  return (((uint64_t) (size->count - 1)) * block_size) + offset;
    98100}
    99101
Note: See TracChangeset for help on using the changeset viewer.