mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 12:22:26 +00:00
Fix comments
This commit is contained in:
parent
1c33bcfceb
commit
52cda620b2
1 changed files with 3 additions and 3 deletions
6
intrin.c
6
intrin.c
|
@ -124,8 +124,8 @@ static ast_expression *intrin_pow(intrin_t *intrin) {
|
|||
ast_function *func = intrin_value(intrin, &value, "pow", TYPE_FLOAT);
|
||||
|
||||
/* prepare some calls for later */
|
||||
ast_call *callpow1 = ast_call_new(intrin_ctx(intrin), (ast_expression*)value); /* for pow(base, -exp) */
|
||||
ast_call *callpow2 = ast_call_new(intrin_ctx(intrin), (ast_expression*)value); /* for pow(vase, exp / 2) */
|
||||
ast_call *callpow1 = ast_call_new(intrin_ctx(intrin), (ast_expression*)value); /* for pow(base, -exp) */
|
||||
ast_call *callpow2 = ast_call_new(intrin_ctx(intrin), (ast_expression*)value); /* for pow(vase, exp / 2) */
|
||||
ast_call *callsqrt1 = ast_call_new(intrin_ctx(intrin), intrin_func_self(intrin, "sqrt", "pow")); /* for sqrt(base) */
|
||||
ast_call *callsqrt2 = ast_call_new(intrin_ctx(intrin), intrin_func_self(intrin, "sqrt", "pow")); /* for sqrt(square) */
|
||||
ast_call *callfabs = ast_call_new(intrin_ctx(intrin), intrin_func_self(intrin, "fabs", "pow")); /* for fabs(mid - exp) */
|
||||
|
@ -507,7 +507,7 @@ static ast_expression *intrin_pow(intrin_t *intrin) {
|
|||
)
|
||||
);
|
||||
|
||||
/* return midvalue */
|
||||
/* return accumulate */
|
||||
vec_push(body->exprs,
|
||||
(ast_expression*)ast_return_new(
|
||||
intrin_ctx(intrin),
|
||||
|
|
Loading…
Reference in a new issue