Git Product home page Git Product logo

bstrith's Introduction

bstrith

provides procedures for arithmetic operations on binary numbers in strings.

Overview

The bstrith provides procedures to handle binary integers written in strings. The primary purpose is to provide the functions for some operations, including arithmetic, bit, logical, and comparison operations.

functions

  • arithmetic operations
    • add
    • sub
  • bit operations
    • shift
    • shift_l
    • shift_r
  • logical operations
    • and
    • or
    • xor
    • not
  • comparison operations
    • is_equal
    • is_not_equal

Examples

    use :: bstrith
    print *, add("11111111", "00000001") ! "00000000"
    print *, sub("00000000", "00000001") ! "11111111"

Getting started

Requirements

bstrith has been tested only on Windows 10 but may also work on Linux/MacOS. The compilers and versions listed below have been used to develop Strith.

  • A Fortran 2008 compiler
    • gfortran 11.2 bundled with quickstart Fortran on Windows
    • Intel Fortran Classic 2021.5.0 Build 20211109_000000
    • NAG Fortran 7.1 Build 7117
  • Fortran Package Manager (fpm) 0.9.0 alpha

Get the code

To get the code, execute the following commnad:

git clone https://github.com/degawa/bstrith.git
cd strish

Build with fpm

To build the library using fpm, execute the following command:

fpm build

Reference from your project

Add the following use statement to modules or procedures calling bstrith.

use :: bstrith

Reference as a fpm project's dependency

To use Strith in your fpm project, add the following to the fpm.toml.

[dependencies]
bstrith = {git = "https://github.com/degawa/bstrith.git"}

bstrith's People

Contributors

degawa avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.