params.py (4167:ce5d0f62f13b) params.py (4168:846a831f6c0b)
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 347 unchanged lines hidden (view full) ---

356 def __init__(self, value):
357 if isinstance(value, MemorySize):
358 self.value = value.value
359 else:
360 self.value = convert.toMemorySize(value)
361 self._check()
362
363class MemorySize32(CheckedInt):
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 347 unchanged lines hidden (view full) ---

356 def __init__(self, value):
357 if isinstance(value, MemorySize):
358 self.value = value.value
359 else:
360 self.value = convert.toMemorySize(value)
361 self._check()
362
363class MemorySize32(CheckedInt):
364 cxx_type = 'uint32_t'
364 size = 32
365 unsigned = True
366 def __init__(self, value):
367 if isinstance(value, MemorySize):
368 self.value = value.value
369 else:
370 self.value = convert.toMemorySize(value)
371 self._check()

--- 661 unchanged lines hidden ---
365 size = 32
366 unsigned = True
367 def __init__(self, value):
368 if isinstance(value, MemorySize):
369 self.value = value.value
370 else:
371 self.value = convert.toMemorySize(value)
372 self._check()

--- 661 unchanged lines hidden ---