projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
079b1cf
)
llvmpipe: Fix typo in lp_build_log constant.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 15 Dec 2009 13:58:53 +0000
(13:58 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 15 Dec 2009 13:58:53 +0000
(13:58 +0000)
src/gallium/drivers/llvmpipe/lp_bld_arit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_bld_arit.c
b/src/gallium/drivers/llvmpipe/lp_bld_arit.c
index 4fd459e593e45af380e9cfa035f07ade562ac373..f0af324404568e89a29ec7d6db7b4b7a85cc0b91 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_bld_arit.c
+++ b/
src/gallium/drivers/llvmpipe/lp_bld_arit.c
@@
-1083,7
+1083,7
@@
lp_build_log(struct lp_build_context *bld,
LLVMValueRef x)
{
/* log(2) */
- LLVMValueRef log2 = lp_build_const_scalar(bld->type,
1.4426950408889634
);
+ LLVMValueRef log2 = lp_build_const_scalar(bld->type,
0.69314718055994529
);
return lp_build_mul(bld, log2, lp_build_exp2(bld, x));
}