完成tfe中相关功能的开发,回归测试通过。
This commit is contained in:
17
platform/include/internal/MESA_htable_aux.h
Normal file
17
platform/include/internal/MESA_htable_aux.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
#include <MESA/MESA_htable.h>
|
||||
#include <assert.h>
|
||||
inline int __wrapper_MESA_htable_set_opt_int(MESA_htable_handle table, enum MESA_htable_opt opt_type, unsigned int value)
|
||||
{
|
||||
int ret = MESA_htable_set_opt(table, opt_type, &value, (int)(sizeof(value)));
|
||||
assert(ret == 0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
inline int __wrapper_MESA_htable_set_opt_func(MESA_htable_handle table, enum MESA_htable_opt opt_type, void * val, size_t len)
|
||||
{
|
||||
int ret = MESA_htable_set_opt(table, opt_type, val, (int)len);
|
||||
assert(ret == 0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user