Skip to content

Commit

Permalink
Cleanup trailing whitespaces in changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Jan 17, 2022
1 parent 386435e commit 97b4006
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 60 deletions.
38 changes: 19 additions & 19 deletions src/mono/mono/metadata/sysmath.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* \file
* these are based on bob smith's csharp routines
* these are based on bob smith's csharp routines
*
* Author:
* Mono Project (http://www.mono-project.com)
Expand Down Expand Up @@ -55,49 +55,49 @@ ves_icall_System_Math_ModF (gdouble x, gdouble *d)
return modf (x, d);
}

gdouble
gdouble
ves_icall_System_Math_Sin (gdouble x)
{
return sin (x);
}

gdouble
gdouble
ves_icall_System_Math_Cos (gdouble x)
{
return cos (x);
}

gdouble
gdouble
ves_icall_System_Math_Cbrt (gdouble x)
{
return cbrt (x);
}

gdouble
gdouble
ves_icall_System_Math_Tan (gdouble x)
{
return tan (x);
}

gdouble
gdouble
ves_icall_System_Math_Sinh (gdouble x)
{
return sinh (x);
}

gdouble
gdouble
ves_icall_System_Math_Cosh (gdouble x)
{
return cosh (x);
}

gdouble
gdouble
ves_icall_System_Math_Tanh (gdouble x)
{
return tanh (x);
}

gdouble
gdouble
ves_icall_System_Math_Acos (gdouble x)
{
return acos (x);
Expand All @@ -109,61 +109,61 @@ ves_icall_System_Math_Acosh (gdouble x)
return acosh (x);
}

gdouble
gdouble
ves_icall_System_Math_Asin (gdouble x)
{
return asin (x);
}

gdouble
gdouble
ves_icall_System_Math_Asinh (gdouble x)
{
return asinh (x);
}

gdouble
gdouble
ves_icall_System_Math_Atan (gdouble x)
{
return atan (x);
}

gdouble
gdouble
ves_icall_System_Math_Atan2 (gdouble y, gdouble x)
{
return atan2 (y, x);
}

gdouble
gdouble
ves_icall_System_Math_Atanh (gdouble x)
{
return atanh (x);
}

gdouble
gdouble
ves_icall_System_Math_Exp (gdouble x)
{
return exp (x);
}

gdouble
gdouble
ves_icall_System_Math_Log (gdouble x)
{
return log (x);
}

gdouble
gdouble
ves_icall_System_Math_Log10 (gdouble x)
{
return log10 (x);
}

gdouble
gdouble
ves_icall_System_Math_Pow (gdouble x, gdouble y)
{
return pow (x, y);
}

gdouble
gdouble
ves_icall_System_Math_Sqrt (gdouble x)
{
return sqrt (x);
Expand Down
22 changes: 11 additions & 11 deletions src/mono/mono/mini/interp/interp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1930,7 +1930,7 @@ dump_args (InterpFrame *inv)
GString *str = g_string_new ("");
int i;
MonoMethodSignature *signature = mono_method_signature_internal (inv->imethod->method);

if (signature->param_count == 0 && !signature->hasthis)
return g_string_free (str, FALSE);

Expand Down Expand Up @@ -3232,7 +3232,7 @@ static long opcode_counts[MINT_LASTOP];

#define COUNT_OP(op) opcode_counts[op]++
#else
#define COUNT_OP(op)
#define COUNT_OP(op)
#endif

#if DEBUG_INTERP
Expand Down Expand Up @@ -3478,7 +3478,7 @@ interp_exec_method (InterpFrame *frame, ThreadContext *context, FrameClauseArgs
#endif
main_loop:
/*
* using while (ip < end) may result in a 15% performance drop,
* using while (ip < end) may result in a 15% performance drop,
* but it may be useful for debug
*/
while (1) {
Expand Down Expand Up @@ -3559,7 +3559,7 @@ interp_exec_method (InterpFrame *frame, ThreadContext *context, FrameClauseArgs
MINT_IN_CASE(MINT_LDC_I4_8)
LDC(8);
MINT_IN_BREAK;
MINT_IN_CASE(MINT_LDC_I4_S)
MINT_IN_CASE(MINT_LDC_I4_S)
LOCAL_VAR (ip [1], gint32) = (short)ip [2];
ip += 3;
MINT_IN_BREAK;
Expand All @@ -3584,7 +3584,7 @@ interp_exec_method (InterpFrame *frame, ThreadContext *context, FrameClauseArgs
ip += 4;
MINT_IN_BREAK;
}
MINT_IN_CASE(MINT_LDC_R8)
MINT_IN_CASE(MINT_LDC_R8)
LOCAL_VAR (ip [1], gint64) = READ64 (ip + 2); /* note union usage */
ip += 6;
MINT_IN_BREAK;
Expand Down Expand Up @@ -3720,7 +3720,7 @@ interp_exec_method (InterpFrame *frame, ThreadContext *context, FrameClauseArgs
call_args_offset = ip [3];

if (need_unbox) {
MonoObject *this_arg = LOCAL_VAR (call_args_offset, MonoObject*);
MonoObject *this_arg = LOCAL_VAR (call_args_offset, MonoObject*);
LOCAL_VAR (call_args_offset, gpointer) = mono_object_unbox_internal (this_arg);
}
ip += 4;
Expand Down Expand Up @@ -6450,8 +6450,8 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
ip += short_offset ? (gint16)*(ip + 1) : (gint32)READ32 (ip + 1);
MINT_IN_BREAK;
}
MINT_IN_CASE(MINT_ICALL_V_V)
MINT_IN_CASE(MINT_ICALL_P_V)
MINT_IN_CASE(MINT_ICALL_V_V)
MINT_IN_CASE(MINT_ICALL_P_V)
MINT_IN_CASE(MINT_ICALL_PP_V)
MINT_IN_CASE(MINT_ICALL_PPP_V)
MINT_IN_CASE(MINT_ICALL_PPPP_V)
Expand All @@ -6476,7 +6476,7 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
CHECK_RESUME_STATE (context);
ip += 4;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_MONO_LDPTR)
MINT_IN_CASE(MINT_MONO_LDPTR)
LOCAL_VAR (ip [1], gpointer) = frame->imethod->data_items [ip [2]];
ip += 3;
MINT_IN_BREAK;
Expand Down Expand Up @@ -6912,12 +6912,12 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
MINT_IN_BREAK;
}
MINT_IN_CASE(MINT_MONO_RETHROW) {
/*
/*
* need to clarify what this should actually do:
*
* Takes an exception from the stack and rethrows it.
* This is useful for wrappers that don't want to have to
* use CEE_THROW and lose the exception stacktrace.
* use CEE_THROW and lose the exception stacktrace.
*/

MonoException *exc = LOCAL_VAR (ip [1], MonoException*);
Expand Down
Loading

0 comments on commit 97b4006

Please sign in to comment.