예제 #1
0
파일: hardware.py 프로젝트: agent001/HCL
    def _sizeof_type(self, type_name):
        '''Returns the size of words required by some type'''

        ans = 0
        if type_name in TYPE_SIZE:
            ans = TYPE_SIZE[type_name]
        else:
            ans = utilities.compound_sizeof(type_name)

        return ans
예제 #2
0
	def _sizeof_type(self, type_name):
		'''Returns the size of words required by some type'''

		ans = 0
		if type_name in TYPE_SIZE:
			ans = TYPE_SIZE[type_name]
		else:
			ans = utilities.compound_sizeof(type_name)

		return ans
예제 #3
0
파일: hardware.py 프로젝트: agent001/HCL
    def _sizeof_variable(self, variable):
        '''Returns the size of words required by some variable in the amv'''

        var_type, var_addr = self.amv[variable]
        ans = 0
        if var_type in TYPE_SIZE:
            ans = TYPE_SIZE[var_type]
        else:
            ans = utilities.compound_sizeof(var_type)

        return ans
예제 #4
0
	def _sizeof_variable(self, variable):
		'''Returns the size of words required by some variable in the amv'''

		var_type, var_addr = self.amv[variable]
		ans = 0
		if var_type in TYPE_SIZE:
			ans = TYPE_SIZE[var_type]
		else:
			ans = utilities.compound_sizeof(var_type)

		return ans