mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:13:00 +00:00
[CRT_APITEST] Add a tests for acos(f) / __libm_sse2_acos(f)
This commit is contained in:
parent
3b895a3c12
commit
bf225ab7da
7 changed files with 512 additions and 1 deletions
|
@ -128,9 +128,18 @@ def gen_table_range(func_name, typecode, func, start, end, steps, max_ulp):
|
|||
" }, " f"{max_ulp}"
|
||||
" }, // " f"{func_name}" "(" f"{float(x)}" ") == " f"{mp.nstr(high_prec, 20)}")
|
||||
|
||||
def generate_acos_table(func_name = "acos", typecode = 'd'):
|
||||
gen_table_header(func_name)
|
||||
gen_table_range(func_name, typecode, mp.acos, -1.0, 1.0, 101, 1)
|
||||
print("};\n")
|
||||
|
||||
def generate_acosf_table():
|
||||
generate_acos_table("acosf", 'f')
|
||||
|
||||
# Dictionary to map math function names to generator functions
|
||||
TABLE_FUNCTIONS = {
|
||||
"acos": generate_acos_table,
|
||||
"acosf": generate_acosf_table,
|
||||
}
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue