Changeset 750


Ignore:
Timestamp:
Oct 20, 2009, 12:23:31 PM (12 years ago)
Author:
nolte
Message:

Added the GCD function to the BigNumberOperations.
Sample submit included.

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/BigNumber/BigNumber.csproj

    r495 r750  
    7777    <Resource Include="icons\inputIcon.png" />
    7878  </ItemGroup>
     79  <ItemGroup>
     80    <Resource Include="icons\gcdicon.png" />
     81  </ItemGroup>
    7982  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    8083  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • trunk/CrypPlugins/BigNumber/BigNumberOperation.cs

    r740 r750  
    2424{
    2525    [Author("Sven Rech", "sven.rech@cryptool.org", "Uni Duisburg-Essen", "http://www.uni-due.de")]
    26     [PluginInfo(false, "BigNumberOperation", "Big Number Operation", null, "BigNumber/icons/plusIcon.png", "BigNumber/icons/minusIcon.png", "BigNumber/icons/timesIcon.png", "BigNumber/icons/divIcon.png", "BigNumber/icons/powIcon.png")]
     26    [PluginInfo(false, "BigNumberOperation", "Big Number Operation", null, "BigNumber/icons/plusIcon.png", "BigNumber/icons/minusIcon.png", "BigNumber/icons/timesIcon.png", "BigNumber/icons/divIcon.png", "BigNumber/icons/powIcon.png", "BigNumber/icons/gcdicon.png")]
    2727    class BigNumberOperation : IThroughput
    2828    {
     
    187187                            }
    188188                            break;
     189                        case 5:
     190                                Output = Input1.gcd(Input2);
     191                            break;
    189192                    }
    190193                }
  • trunk/CrypPlugins/BigNumber/BigNumberOperationSettings.cs

    r513 r750  
    3232        #endregion
    3333        #region taskpane
    34         [TaskPane("Operat", "Choose the operator.", null, 1, false, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "x+y","x-y","x*y","x/y","x^y"})]
     34        [TaskPane("Operat", "Choose the operator.", null, 1, false, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "x+y","x-y","x*y","x/y","x^y","GCD"})]
    3535        public int Operat
    3636        {
     
    6060                        case 4:
    6161                            ChangePluginIcon(4);
     62                            break;
     63                        case 5:
     64                            ChangePluginIcon(5);
    6265                            break;
    6366                    }
Note: See TracChangeset for help on using the changeset viewer.