Skip to content

Commit 87602f6

Browse files
authored
[libclc] Fix unresolved reference to missing table (#133691)
Splitting the 'ln_tbl' into two in db98e29 wasn't done thoroughly enough as some references to the old table still remained. This commit fixes the unresolved references by updating to the new split table.
1 parent 3fd0eaa commit 87602f6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libclc/clc/include/clc/math/tables.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ CLC_TABLE_FUNCTION_DECL(float, exp_tbl_ep_tail);
7878

7979
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
8080

81-
TABLE_FUNCTION_DECL(double2, ln_tbl);
8281
CLC_TABLE_FUNCTION_DECL(double, ln_tbl_lo);
8382
CLC_TABLE_FUNCTION_DECL(double, ln_tbl_hi);
8483
CLC_TABLE_FUNCTION_DECL(double, atan_jby256_tbl_head);

libclc/clc/lib/generic/math/clc_log_base.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,8 @@ __clc_log(double x)
261261
int index = __clc_as_int2(ux).hi >> 13;
262262
index = ((0x80 | (index & 0x7e)) >> 1) + (index & 0x1);
263263

264-
double2 tv = USE_TABLE(ln_tbl, index - 64);
265-
double z1 = tv.s0;
266-
double q = tv.s1;
264+
double z1 = USE_TABLE(ln_tbl_lo, index - 64);
265+
double q = USE_TABLE(ln_tbl_hi, index - 64);
267266

268267
double f1 = index * 0x1.0p-7;
269268
double f2 = f - f1;

0 commit comments

Comments
 (0)